output to read through if you are using big tensors... but you can choose to
output to read through if you are using big tensors... but you can choose to
put logic inside of the print_eval function that would, for example, only
put logic inside of the print_eval function that would, for example, only
print something out if a certain kind of Op was used, at a certain program
print something out if a certain kind of Op was used, at a certain program
position, or if a particular value shows up in one of the inputs or outputs.
position, or if a particular value shows up in one of the inputs or outputs.
Use your imagination :)
.. TODO: documentation for link.WrapLinkerMany
.. TODO: documentation for link.WrapLinkerMany
This can be a really powerful debugging tool. Note the call to ``fn`` inside the call to ``print_eval``; without it, the graph wouldn't get computed at all!
This can be a really powerful debugging tool.
Note the call to ``fn`` inside the call to ``print_eval``; without it, the graph wouldn't get computed at all!