pytorch
7836eace - [JIT] JIT should let people know we inferred an argument as a tensor (#38527)

Commit
5 years ago
[JIT] JIT should let people know we inferred an argument as a tensor (#38527) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38527 This PR solves issue (#37200). Error is encountered during IR generation while trying to resolve the call to sum. Should let user know it inferred the value for argument 'dim' to be of type 'Tensor' because it was not annotated with an explicit type. Test Plan: Add code to reprodue the issue (#37200) `python test/test_jit.py TestJit.test_inferred_as_tensor` Differential Revision: D21743876 Pulled By: superwizard2019 fbshipit-source-id: 370ca32afea4d53b44d454f650f7d3006f86bcc6
Author
xuewenc
Parents
Loading