pytorch/torch/csrc/jit/python
Zhengxu Chen 59b3f5911d [sigmoid] Support custom obj deserialization. (#133463)
Summary:
It seems we have multiple places deserializing torchbind objects. Moving the code around so that every load essentially share the same implementation.

Also added a test case "package_reader_testing" which load back the archive file in Python and eagerly validate the numerical result.

Test Plan: buck test mode/opt sigmoid/inference/test:e2e_test_cpu

Reviewed By: SherlockNoMad

Differential Revision: D61235770

Pull Request resolved: https://github.com/pytorch/pytorch/pull/133463
Approved by: https://github.com/ydwu4
2024-08-15 17:58:44 +00:00
..
init.cpp [3/N] Fix clang-tidy warnings in jit (#131830) 2024-07-26 15:46:28 +00:00
init.h
module_python.h Revert "Fix static py::object dangling pointer with py::gil_safe_call_once_and_store (#130341)" 2024-07-26 17:02:56 +00:00
pybind_utils.cpp [18/N] Fix clang-tidy warnings in jit (#132963) 2024-08-09 01:27:32 +00:00
pybind_utils.h [18/N] Fix clang-tidy warnings in jit (#132963) 2024-08-09 01:27:32 +00:00
pybind.h [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_arg_flatten.cpp
python_arg_flatten.h
python_custom_class.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_custom_class.h [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_dict.cpp
python_dict.h [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_interpreter.cpp [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_ir.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_ir.h [codemod] c10:optional -> std::optional (#126135) 2024-05-14 19:35:51 +00:00
python_ivalue.h [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_list.cpp [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_list.h [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_sugared_value.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_sugared_value.h [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_tracer.cpp [3/N] Fix clang-tidy warnings in jit (#131830) 2024-07-26 15:46:28 +00:00
python_tracer.h [3/N] Fix clang-tidy warnings in jit (#131830) 2024-07-26 15:46:28 +00:00
python_tree_views.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_tree_views.h
script_init.cpp [sigmoid] Support custom obj deserialization. (#133463) 2024-08-15 17:58:44 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h
utf8_decoding_ignore.cpp
utf8_decoding_ignore.h