What are the benefits of lazy computation? #387
Replies: 1 comment 3 replies
-
Lazy computation is one way to let us get the graph for transformations (grad/vmap/optimizations) without doing wasteful work.
I very much hear you. For Python this works fine since if you inspect an array it will eval it (and any higher level bindings we intend to do the same). From GDB w/ C++ it is not so clean. But basically you need to call the print function on the array to look at it's contents. |
Beta Was this translation helpful? Give feedback.
-
Also, is there a flag of some kind which can be set to disable lazy computation? When in learning mode (as I am) and stepping through the debugger while watching array values, it might be better to have arrays evaluated immediately.
Beta Was this translation helpful? Give feedback.
All reactions