mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Avoid double exception in destructor if attempting to serialize to python object that does not have `write` method Use `Finalizer` class in `PyTorchStreamWriter::writeEndOfFile()` to a always set `finailized_` property even if excretion occurs. (as there isn't much one can do at this point) Add expicit check for the attribue to `_open_zipfile_writer_buffer` and add unitests Modernize code a bit by using Python-3 `super()` method Fixes https://github.com/pytorch/pytorch/issues/87997 Pull Request resolved: https://github.com/pytorch/pytorch/pull/88128 Approved by: https://github.com/albanD |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| crc_alt.h | ||
| crc.cc | ||
| file_adapter.cc | ||
| file_adapter.h | ||
| in_memory_adapter.h | ||
| inline_container_test.cc | ||
| inline_container.cc | ||
| inline_container.h | ||
| istream_adapter.cc | ||
| istream_adapter.h | ||
| read_adapter_interface.cc | ||
| read_adapter_interface.h | ||
| versions.h | ||