pytorch/torch/csrc/jit/python
Scott Wolchok 50c0550f5a Add magic TORCH_MAKE_PYBIND_ENUM_FASTER macro (#163527)
See comment on the macro definition. In short, pybind11 3.x
added `py::native_enum`, and also had to add overhead for that new way
to bind enums on the critical path for calling functions that take
regular old `py::enum_`s as arguments (for example, `__eq__`).

Differential Revision: [D82873169](https://our.internmc.facebook.com/intern/diff/D82873169/)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/163527
Approved by: https://github.com/ezyang
2025-09-26 17:59:22 +00:00
..
init.cpp Add magic TORCH_MAKE_PYBIND_ENUM_FASTER macro (#163527) 2025-09-26 17:59:22 +00:00
init.h
module_python.h
opaque_obj.h [opaque obj] Initial OpaqueObject (#162660) 2025-09-22 18:30:28 +00:00
pybind_utils.cpp Overload _get_operation_for_overload_or_packet & friends to accept ArrayRef (#162219) 2025-09-09 01:10:06 +00:00
pybind_utils.h Revert "[RELAND] Always build USE_DISTRIBUTED (#160449) and Make distributed modules importable even when backend not built (#159889) (#162594)" 2025-09-25 13:47:46 +00:00
pybind.h
python_arg_flatten.cpp
python_arg_flatten.h
python_custom_class.cpp
python_custom_class.h
python_dict.cpp
python_dict.h
python_interpreter.cpp
python_ir.cpp
python_ir.h
python_ivalue.h
python_list.cpp
python_list.h
python_sugared_value.cpp Revert "[RELAND] Always build USE_DISTRIBUTED (#160449) and Make distributed modules importable even when backend not built (#159889) (#162594)" 2025-09-25 13:47:46 +00:00
python_sugared_value.h
python_tracer.cpp
python_tracer.h
python_tree_views.cpp
python_tree_views.h
script_init.cpp Add magic TORCH_MAKE_PYBIND_ENUM_FASTER macro (#163527) 2025-09-26 17:59:22 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h
utf8_decoding_ignore.cpp
utf8_decoding_ignore.h