LeshengJin opened a new pull request, #15604:
URL: https://github.com/apache/tvm/pull/15604

   This pr introduces `op.print_`, which prints runtime tensor value to the 
screen in one-line code.
   
   Example:
   
   ```python
   class Model(Module):
       def test(self, x: Tensor):
           z = op.add(x, x)
           op.print_(z) # In the runtime, the value of z would be printed to 
screen.
           return x
   ```
   
   cc: @junrushao @cyx-6 @jwfromm 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to