pytorch/torch/csrc/jit/python
Michael Suo 99dd846672 [torch] fix builds for older pybind (#146630)
Summary:
some versions of pybind we build with don't have `py::set_error`.

So just use the underlying python C API.

Test Plan: unit tests

Differential Revision: D69254629

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146630
Approved by: https://github.com/colin2328, https://github.com/ngimel
2025-02-06 21:22:00 +00:00
..
init.cpp Add option to serialization config to reduce random reads from get_record_offset when loading with mmap=True (#143880) 2025-01-31 17:09:20 +00:00
init.h
module_python.h
pybind_utils.cpp
pybind_utils.h Expose ToIValueAllowNumbersAsTensors to TORCH_PYTHON_API so we can use it in monarch (#146087) 2025-01-31 05:08:11 +00:00
pybind.h Use Wextra-semi (#140236) 2024-11-13 02:15:16 +00:00
python_arg_flatten.cpp
python_arg_flatten.h
python_custom_class.cpp
python_custom_class.h
python_dict.cpp
python_dict.h Use Wextra-semi (#140236) 2024-11-13 02:15:16 +00:00
python_interpreter.cpp
python_ir.cpp [TorchScript] bindings for torch._C.ClassType.method_names() (#140444) 2024-11-13 17:23:23 +00:00
python_ir.h
python_ivalue.h
python_list.cpp
python_list.h Use Wextra-semi (#140236) 2024-11-13 02:15:16 +00:00
python_sugared_value.cpp Fix PyBind 2.10.4 compatibility issue in caffe2/torch/csrc/dynamo/guards.cpp +2 (#141456) 2024-11-24 21:05:48 +00:00
python_sugared_value.h Use Wextra-semi (#140236) 2024-11-13 02:15:16 +00:00
python_tracer.cpp
python_tracer.h
python_tree_views.cpp
python_tree_views.h
script_init.cpp [torch] fix builds for older pybind (#146630) 2025-02-06 21:22:00 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h
utf8_decoding_ignore.cpp
utf8_decoding_ignore.h