pytorch/torch/csrc/jit/python
Zino Benaissa 9111ae7782 Preserve user specified attributes and methods (#38830)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38830

This patch enables to preserve user specified attributes or non forward
methods. The API:
  _freeze_module(Module, ["a", "version"])

Test Plan: Imported from OSS

Differential Revision: D21957316

Pulled By: bzinodev

fbshipit-source-id: 5c9146ae679791070a9de868c45785725b48a9e6
2020-06-10 01:38:18 -07:00
..
init.cpp Preserve user specified attributes and methods (#38830) 2020-06-10 01:38:18 -07:00
init.h [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
module_python.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
pybind_utils.h [JIT] fix broadcasting lists of ints (#39481) 2020-06-04 12:16:41 -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 [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
python_custom_class.cpp [torchbind] Better error message when missing init. (#37474) 2020-05-13 17:38:31 -07:00
python_custom_class.h [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
python_interpreter.cpp [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_ir.cpp [quant] ConvPackedParams with TorchBind (#35923) 2020-05-05 20:18:36 -07:00
python_ir.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00
python_ivalue.h Explicitly decref py::object in ConcretePyObjectHolder and PythonFunctionGuard (#38364) 2020-05-12 20:55:53 -07:00
python_sugared_value.cpp [quant][graphmode] Different rule for add/add_/mul/mul_ (#38667) 2020-05-20 19:43:46 -07:00
python_sugared_value.h [JIT] Refactor attributes to support buffers and parameters as first class citizens, add support for iterating over named_buffers() (#37905) 2020-05-18 23:23:43 -07:00
python_tracer.cpp [jit] tracer flag to guard risky behaivors (#36277) 2020-04-13 22:35:03 -07:00
python_tracer.h [jit] tracer flag to guard risky behaivors (#36277) 2020-04-13 22:35:03 -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 Enabling lite interpreter in torch python API (#39181) 2020-06-03 18:33:23 -07:00
script_init.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
update_graph_executor_opt.cpp Canonicalize includes in torch, and add tests for it (#36303) 2020-04-23 08:09:21 -07:00
update_graph_executor_opt.h [JIT] clang-format JIT code (#35115) 2020-03-26 11:24:51 -07:00