pytorch/torch/csrc/jit/python
David Reiss 645d57ea01 Expose JIT Module's "register_attribute" to Python (#35630)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35630

Prefix underscored for now because the semantics of this method can be
confusing.  It adds a new attribute to the *type*, which can be shared
by several objects.

Test Plan:
Next diff in stack uses it, and has unit tests.

Imported from OSS

Differential Revision: D20904253

fbshipit-source-id: dcbf60eacf0e0e075c19238165aa33954aa73b5f
2020-04-08 13:09:28 -07:00
..
init.cpp Enable relu fusion with prepacked linear/conv. (#35705) 2020-04-03 15:38:45 -07:00
init.h
module_python.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
pybind_utils.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
pybind.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_arg_flatten.cpp [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_arg_flatten.h
python_custom_class.cpp [reapply][JIT] Namespaces for TorchBind (#35254) 2020-03-24 00:39:48 -07:00
python_custom_class.h
python_interpreter.cpp [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_ir.cpp [jit] Fix type comparisons segfault (#35929) 2020-04-03 11:33:48 -07:00
python_ir.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_ivalue.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_sugared_value.cpp [jit] Fix named tuple resolution (#35409) 2020-03-27 17:07:26 -07:00
python_sugared_value.h [jit] Fix named tuple resolution (#35409) 2020-03-27 17:07:26 -07:00
python_tracer.cpp [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_tracer.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_tree_views.cpp [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_tree_views.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
script_init.cpp Expose JIT Module's "register_attribute" to Python (#35630) 2020-04-08 13:09:28 -07:00
script_init.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
update_graph_executor_opt.cpp [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
update_graph_executor_opt.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00