pytorch/torch/csrc/jit/script
David Riazati 24db1667da Attribute serialization improvements (#18188)
Summary:
* adds attributes to `ScriptModule.__getattr__` so they can be accessed in Python after re-importing
* full support for all the possible values for an `int64_t`
    * this necessitated a bunch more `pushWhatever` functions, so re-introduced a templated version to cut down on duplicate code
* tests to validate references / value sharing works
* adds `torch.jit.Unpickler` which people can use to de-serialize the pickle files into Python / have a quick reference on how to do this without PyTorch
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18188

Differential Revision: D14527490

Pulled By: driazati

fbshipit-source-id: efd15579cc04aa2e28c4b2c9490d82d849dee559
2019-03-29 19:10:12 -07:00
..
builtin_functions.cpp initializing class value (#17585) 2019-03-11 19:13:52 -07:00
builtin_functions.h clang format world (#15524) 2018-12-26 06:55:01 -08:00
class_type.cpp support serialization of classes (#17856) 2019-03-15 12:06:23 -07:00
compiler.cpp Add hash() global (#18258) 2019-03-29 18:29:34 -07:00
compiler.h initializing class value (#17585) 2019-03-11 19:13:52 -07:00
edit_distance.cpp Print out operator suggestions for unknown builtin op (#15183) 2019-01-04 13:04:44 -08:00
edit_distance.h Print out operator suggestions for unknown builtin op (#15183) 2019-01-04 13:04:44 -08:00
error_report.h clang format world (#15524) 2018-12-26 06:55:01 -08:00
final_returns.cpp clang format world (#15524) 2018-12-26 06:55:01 -08:00
final_returns.h clang format world (#15524) 2018-12-26 06:55:01 -08:00
init.cpp Attribute serialization improvements (#18188) 2019-03-29 19:10:12 -07:00
init.h Canonicalize all includes in PyTorch. (#14849) 2018-12-08 19:38:30 -08:00
jit_exception.h clang format world (#15524) 2018-12-26 06:55:01 -08:00
lexer.cpp Support for basic list comprehensions (#17267) 2019-03-22 15:25:13 -07:00
lexer.h Support for basic list comprehensions (#17267) 2019-03-22 15:25:13 -07:00
logging.cpp Experimental logging/counters API (#18235) 2019-03-29 17:14:03 -07:00
logging.h Experimental logging/counters API (#18235) 2019-03-29 17:14:03 -07:00
module.cpp Support attributes when emitting function calls (#18156) 2019-03-19 13:56:40 -07:00
module.h Attribute serialization improvements (#18188) 2019-03-29 19:10:12 -07:00
parse_string_literal.h clang format world (#15524) 2018-12-26 06:55:01 -08:00
parser.cpp python interop for script classes (#18148) 2019-03-22 16:30:04 -07:00
parser.h Attribute serialization (#17423) 2019-03-18 18:18:22 -07:00
python_tree_views.cpp Support for basic list comprehensions (#17267) 2019-03-22 15:25:13 -07:00
python_tree_views.h clang format world (#15524) 2018-12-26 06:55:01 -08:00
schema_matching.cpp Handle Scalars Better (#17875) 2019-03-12 10:52:26 -07:00
schema_matching.h Support named tuple return from operators on JIT (#16253) 2019-02-10 18:15:56 -08:00
schema_type_parser.cpp Optimize boolean expressions & unwraps (#18259) 2019-03-25 21:50:57 -07:00
schema_type_parser.h Refactor Type Parser b/w Schemas & IRParser into a type common parser (#17383) 2019-02-22 13:43:55 -08:00
script_type_parser.cpp Turn script_type_parser into a class (#18211) 2019-03-22 16:30:05 -07:00
script_type_parser.h Turn script_type_parser into a class (#18211) 2019-03-22 16:30:05 -07:00
slot.h Add Slot type to abstract the raw pointers being used for slots. (#18226) 2019-03-28 10:35:36 -07:00
sugared_value.cpp support serialization of classes (#17856) 2019-03-15 12:06:23 -07:00
sugared_value.h support serialization of classes (#17856) 2019-03-15 12:06:23 -07:00
tree_views.h Support for basic list comprehensions (#17267) 2019-03-22 15:25:13 -07:00
tree.h clang format world (#15524) 2018-12-26 06:55:01 -08:00