pytorch/torch/csrc/jit/script
Michael Suo 10751d5fb4 python interop for script classes (#18148)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18148
ghimport-source-id: 40a9d745dc9aeba53d098743323fcbd50ca65137

Stack from [ghstack](https://github.com/ezyang/ghstack):
* **#18148 py interop**

Support for converting classes between the Python–TorchScript boundary. Like other TorchScript values, ScriptClasses are native Python values when used in Python and IValues when used in TorchScript.

Notably, there is a copy across this boundary, which will be surprising to users who will expect standard Python reference semantics. I have some ideas for fixing that, but it's a more involved process.

Reviewed By: jamesr66a

Differential Revision: D14526259

fbshipit-source-id: 5916e3032488a42dc7da756c1826d7c040a21ebd
2019-03-22 16:30:04 -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 Support for basic list comprehensions (#17267) 2019-03-22 15:25:13 -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
file_check.cpp move prim::None to prim::Constant (again) (#17186) 2019-02-19 11:45:50 -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 python interop for script classes (#18148) 2019-03-22 16:30:04 -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
module.cpp Support attributes when emitting function calls (#18156) 2019-03-19 13:56:40 -07:00
module.h Specify overload name in function schema (#18037) 2019-03-15 16:58:13 -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 allow "before" and "after" alias annotations (#17480) 2019-02-28 12:00:34 -08: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 Attribute serialization (#17423) 2019-03-18 18:18:22 -07:00
script_type_parser.h Attribute serialization (#17423) 2019-03-18 18:18:22 -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