Support attributes when emitting function calls (#18156)
authorDavid Riazati <davidriazati@fb.com>
Tue, 19 Mar 2019 20:51:25 +0000 (13:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 19 Mar 2019 20:56:40 +0000 (13:56 -0700)
commit1bc4eb93c7b4aa055deeb46f495f89713aab3e3f
tree174b27d8c4da33215ba044728906702119279f7f
parentf212fd9fd64d4ad9f28444ee44a070a36b7477ac
Support attributes when emitting function calls (#18156)

Summary:
The type of each `initial_ivalue` is completely known at some point but that information is discarded by the time a call to it is emitted. This PR is kind of a hack, as a better (longer) solution, the method should know about the type of each initial value.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18156

Differential Revision: D14525768

Pulled By: driazati

fbshipit-source-id: 52d53e9711a07a4551c988bd95fe997e654aa465
torch/csrc/jit/script/module.cpp