Better error message for tensor with grad as constant in tracing (#18298)
authorElias Ellison <eellison@fb.com>
Fri, 22 Mar 2019 22:25:40 +0000 (15:25 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 Mar 2019 22:29:30 +0000 (15:29 -0700)
commit3badea6eb3b835814990291368b03fe63cf29e00
tree36b8de8e12c50e4275e246db2c0e9d014ecab797
parent2ad2b2c7b10aa00822164c61845d910917d91ff4
Better error message for tensor with grad as constant in tracing (#18298)

Summary:
Fix for https://github.com/pytorch/pytorch/issues/17583

There's an unrelated issue right now causing a segfault when printing tensor so that might have to fixed first for this to land
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18298

Differential Revision: D14584266

Pulled By: eellison

fbshipit-source-id: 4e7850dadc78ef1e98ad40b9d8adc0fef42acf48
test/test_jit.py
torch/csrc/jit/pybind_utils.h
torch/csrc/jit/tracer.cpp