Replace Slot on script::Method with NamedIValue (#18252)
authorDavid Riazati <davidriazati@fb.com>
Fri, 5 Apr 2019 06:27:05 +0000 (23:27 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 5 Apr 2019 06:35:56 +0000 (23:35 -0700)
commit8f5e478aa2ca0c7acb310089377dac27a3fe2052
tree97dc7d3e2d28b0bff6ba94d90795659aa9bef6c2
parent90b8552c9811ee6e9bbc9dff1f1df30c00b663dd
Replace Slot on script::Method with NamedIValue (#18252)

Summary:
This refactor lets us track the types of initial values added onto a `Method`. The main motivation for this is the change in `module.cpp`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18252

Differential Revision: D14673459

Pulled By: driazati

fbshipit-source-id: 21200180c47f25bb70898771adfb569856e6c34a
torch/csrc/jit/import_source.cpp
torch/csrc/jit/passes/python_print.cpp
torch/csrc/jit/script/init.cpp
torch/csrc/jit/script/module.cpp
torch/csrc/jit/script/module.h