mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: [3/N] Implement Enum JIT support * Add enum value as constant support * Add sugared value for EnumClass Supported: Enum-typed function arguments using Enum type and comparing them Support getting name/value attrs of enums Using Enum value as constant TODO: Add PyThon sugared value for Enum Support Enum-typed return values Support serialization and deserialization Pull Request resolved: https://github.com/pytorch/pytorch/pull/42085 Reviewed By: eellison Differential Revision: D22758042 Pulled By: gmagogsfm fbshipit-source-id: 5c6e571686c0b60d7fbad59503f5f94b3b3cd125 |
||
|---|---|---|
| .. | ||
| init.cpp | ||
| init.h | ||
| module_python.h | ||
| pybind_utils.h | ||
| pybind.h | ||
| python_arg_flatten.cpp | ||
| python_arg_flatten.h | ||
| python_custom_class.cpp | ||
| python_custom_class.h | ||
| python_interpreter.cpp | ||
| python_ir.cpp | ||
| python_ir.h | ||
| python_ivalue.h | ||
| python_sugared_value.cpp | ||
| python_sugared_value.h | ||
| python_tracer.cpp | ||
| python_tracer.h | ||
| python_tree_views.cpp | ||
| python_tree_views.h | ||
| script_init.cpp | ||
| script_init.h | ||
| update_graph_executor_opt.cpp | ||
| update_graph_executor_opt.h | ||