pytorch/torch/csrc/jit/python
Mikayla Gawarecki dd92637f44 Add write_record_metadata to PyTorchFileWriter (#125184)
Add `PyTorchFileWriter.write_record_metadata(record_name, num_bytes)` that
- writes the zipfile header/end of central directory metadata for an entry*
- reserves `num_bytes` in the zipfile for the payload.

*Since the payload is not provided, the CRC32 computation is skipped and 0s are written in the corresponding entry of the zipfile header

Pull Request resolved: https://github.com/pytorch/pytorch/pull/125184
Approved by: https://github.com/albanD
2024-05-03 07:29:52 +00:00
..
init.cpp Add write_record_metadata to PyTorchFileWriter (#125184) 2024-05-03 07:29:52 +00:00
init.h
module_python.h
pybind_utils.cpp Add pending_fresh_unbacked_symbols, populate unbacked_bindings for Dynamo (#124290) 2024-04-24 09:11:34 +00:00
pybind_utils.h Support torchbind op dispatch in python (#123367) 2024-04-19 17:17:27 +00:00
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