pytorch/test/cpp
Jerry Zhang 1707774417 AddConstant and findConstant for ClassType (#29217)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29217

We want to preserve constant information in ClassType so that
users can access the constants in the module by name.
This is also used later for freezing some attribute(converting
attributes to constant)

Test Plan:
tbd

Imported from OSS

Differential Revision: D18799955

fbshipit-source-id: fbfbcd5d3f7f560368b96e2a87e270c822a3d03a
2019-12-04 14:17:13 -08:00
..
api Exclude undefined tensors in the result of Module::parameters() / named_paramters() / buffers() / named_buffers() (#30626) 2019-12-02 21:59:58 -08:00
common Trim libshm deps, move tempfile.h to c10 (#17019) 2019-02-13 19:38:35 -08:00
dist_autograd Use std::shared_ptr for DistAutogradContext. (#29770) 2019-11-19 15:50:42 -08:00
jit AddConstant and findConstant for ClassType (#29217) 2019-12-04 14:17:13 -08:00
rpc Improve process_group_agent() serialization speed (#29785) 2019-11-28 09:57:52 -08:00
__init__.py Add train() / eval() / is_training() to C++ ScriptModule API (#16044) 2019-02-01 13:07:38 -08:00