pytorch/torch/csrc/jit/python
David Berard 0925597707 [JIT] Support for ParameterDict getattr
Adds support for scripting ParameterDicts and getattr() on them. It does
not support iterating on ParameterDicts because torch/nn/container.py
implementation of ParameterDict.items() uses a generator, which is not
supported by torchscript. torch/nn/container.py would need to be updated
so that iter gets correctly registered in python_sugared_value.cpp

Added a test in test_module_containers.py

Pull Request resolved: https://github.com/pytorch/pytorch/pull/77143

Approved by: https://github.com/eellison
2022-05-13 01:03:25 +00:00
..
init.cpp Add RefineTypes JIT pass for Tuple (#76919) 2022-05-12 00:48:39 +00:00
init.h
module_python.h
pybind_utils.cpp Register prims as operators. 2022-05-11 16:38:14 +00:00
pybind_utils.h Register prims as operators. 2022-05-11 16:38:14 +00:00
pybind.h [AutoAccept][Codemod][FBSourceClangFormatLinter] Daily arc lint --take CLANGFORMAT 2021-12-19 16:38:25 -08:00
python_arg_flatten.cpp [ONNX] Support optional type (#68793) (#73284) 2022-05-04 20:24:30 +00:00
python_arg_flatten.h
python_custom_class.cpp
python_custom_class.h
python_dict.cpp
python_dict.h
python_interpreter.cpp
python_ir.cpp [ONNX] Support optional type (#68793) (#73284) 2022-05-04 20:24:30 +00:00
python_ir.h
python_ivalue.h
python_list.cpp [BE] Fix pybind deprecation warnings (#72376) 2022-02-07 18:33:32 +00:00
python_list.h Fix sign-compare violations in python_list.h 2022-04-01 19:15:51 +00:00
python_sugared_value.cpp [JIT] Support for ParameterDict getattr 2022-05-13 01:03:25 +00:00
python_sugared_value.h [JIT] Support for ParameterDict getattr 2022-05-13 01:03:25 +00:00
python_tracer.cpp
python_tracer.h
python_tree_views.cpp Reland "Make debug_pkl smaller by only emitting unique traces." (#73368) 2022-04-18 22:34:21 +00:00
python_tree_views.h
script_init.cpp [JIT] Support for ParameterDict getattr 2022-05-13 01:03:25 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h