masahi commented on issue #6268:
URL: https://github.com/apache/incubator-tvm/issues/6268#issuecomment-689777337


   Is this the error you are getting? It is coming from PyTorch during tracing, 
not TVM.
   
   ```
   Traceback (most recent call last):
     File "test.py", line 11, in <module>
       jit = torch.jit.trace(fn, (torch.ones(4, 5, dtype=torch.int64),))
     File 
"/home/masa/projects/anaconda3/lib/python3.7/site-packages/torch/jit/__init__.py",
 line 980, in trace
       _force_outplace)
     File "test.py", line 8, in fn
       x /= x.shape[-1]
   RuntimeError: Integer division of tensors using div or / is no longer 
supported, and in a future release div will perform true division as in Python 
3. Use true_divide or floor_divide (// in Python) instead.
   ```


----------------------------------------------------------------
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.

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


Reply via email to