Add ability to specialize class types to ArgumentSpec (#18314)
authorZachary DeVito <zdevito@fb.com>
Wed, 3 Apr 2019 00:33:06 +0000 (17:33 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 3 Apr 2019 00:35:57 +0000 (17:35 -0700)
commit2d07993bcbed8aec20d09c9192d30c4eefeb1507
tree5a018fd50efdc503a68efa50790cf692abb14cfa
parent5f5a2aaab9d0b847df09e0a7f367e603ef6bcb2a
Add ability to specialize class types to ArgumentSpec (#18314)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18314
ghimport-source-id: 8cecb768d476ab19c9460f39c8f94a764e4cb052

Stack from [ghstack](https://github.com/ezyang/ghstack):
* **#18314 Add ability to specialize class types to ArgumentSpec**
* #18226 Add Slot type to abstract the raw pointers being used for slots.

Differential Revision: D14574395

fbshipit-source-id: cc3af6e56e9ae52990f4a1ad56ecceaa2d493577
14 files changed:
aten/src/ATen/core/ivalue.h
aten/src/ATen/core/jit_type.h
aten/src/ATen/core/type.cpp
test/cpp/jit/test_autodiff.h
test/test_jit.py
tools/build_variables.py
torch/CMakeLists.txt
torch/csrc/jit/argument_spec.cpp [new file with mode: 0644]
torch/csrc/jit/argument_spec.h
torch/csrc/jit/graph_executor.cpp
torch/csrc/jit/init.cpp
torch/csrc/jit/passes/shape_analysis.cpp
torch/csrc/jit/python_ir.cpp
torch/csrc/jit/script/module.h