pytorch/torch/csrc/monitor
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
..
counters.cpp [Code Clean] Replace std::runtime_error with TORCH_CHECK (#163610) 2025-09-26 04:52:48 +00:00
counters.h
events.cpp
events.h Fix 'dllimport attribute ignored on inline function' (#157670) 2025-07-07 16:57:48 +00:00
python_init.cpp Add magic TORCH_MAKE_PYBIND_ENUM_FASTER macro (#163527) 2025-09-26 17:59:22 +00:00
python_init.h