Fix cpp_custom_type_hack variable handling (#19400)
authorDmytro Dzhulgakov <dzhulgakov@fb.com>
Thu, 18 Apr 2019 23:34:20 +0000 (16:34 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Apr 2019 23:44:25 +0000 (16:44 -0700)
commitedf77fe64ae2f9becfbc1848721b096a14bcd820
treea0525cc0b562d20b3e7be6b61a31dd8b63d330f2
parent4c93be0fa015f3733dbbe144dbfdc255c787f82f
Fix cpp_custom_type_hack variable handling (#19400)

Summary:
My bad - it might be called in variable and non-variable context. So it's better to just inherit variable-ness from the caller.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19400

Reviewed By: ezyang

Differential Revision: D14994781

Pulled By: dzhulgakov

fbshipit-source-id: cb9d055b44a2e1d7bbf2e937d558e6bc75037f5b
aten/src/ATen/cpp_custom_type_hack.h
aten/src/ATen/native/QuantizedLinear.cpp