pytorch/torch/csrc/jit/python
Scott Wolchok 303c9cf048 Save Python refcount bump on each arg in maybe_handle_torch_function (#164625)
Pybind's API entails a small unnecessary overhead when working with args. (Similarly, we should probably be using vectorcall, but that's a bigger change for both us and pybind11.)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164625
Approved by: https://github.com/albanD
ghstack dependencies: #164624
2025-10-21 02:40:12 +00:00
..
init.cpp [opaque_obj_v2] PyObject custom op schema type (#165004) 2025-10-14 20:21:04 +00:00
init.h
module_python.h
opaque_obj.h [opaque_obj] Add __eq__ and __deepcopy__ (#163279) 2025-10-08 09:09:16 +00:00
pybind_utils.cpp Save Python refcount bump on each arg in maybe_handle_torch_function (#164625) 2025-10-21 02:40:12 +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 [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
python_arg_flatten.cpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
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 Revert "Add magic TORCH_MAKE_PYBIND_ENUM_FASTER macro (#163527)" 2025-10-02 15:42:42 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h
utf8_decoding_ignore.cpp
utf8_decoding_ignore.h