pytorch/torch/csrc/jit/python
albanD 8cb4855d1e Release the GIL in serialization when it is safe to do so (#120818)
In particular this ensures we release the GIL when serializing:
- PyBytes objects (this is how we get the pickle object)
- Storage objects

Other string-like objects keep the gil which is fine because we only use this for very small strings today (for endianess) and so releasing the GIL is not important there
Co-authored-by: Mikayla Gawarecki <mikaylagawarecki@gmail.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120818
Approved by: https://github.com/colesbury
2024-03-01 22:37:26 +00:00
..
init.cpp Release the GIL in serialization when it is safe to do so (#120818) 2024-03-01 22:37:26 +00:00
init.h
module_python.h
pybind_utils.cpp Fix gradient refcounts in pybind and compiled autograd (#118817) 2024-02-07 10:25:42 +00:00
pybind_utils.h
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 [2/N] Replace std::tie with structural binding (#119879) 2024-02-15 02:56:34 +00:00
python_ir.h
python_ivalue.h
python_list.cpp
python_list.h
python_sugared_value.cpp [2/N] Replace std::tie with structural binding (#119879) 2024-02-15 02:56:34 +00:00
python_sugared_value.h
python_tracer.cpp
python_tracer.h
python_tree_views.cpp [2/N] Replace std::tie with structural binding (#119879) 2024-02-15 02:56:34 +00:00
python_tree_views.h
script_init.cpp [2/N] Replace std::tie with structural binding (#119879) 2024-02-15 02:56:34 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h
utf8_decoding_ignore.cpp
utf8_decoding_ignore.h