pytorch/torch/csrc/generic
Richard Zou 8ba8713f5d torch.load() / torch.save() support arbitrary file-like object (#5466)
* Test serialization file-like object API guarantees and update docs.

* Implement torch.load() / torch.save() for arbitrary file-like objects

* Add tests for torch.load/save for file-like objects

* Fix compiler errors

* Throw error if user tries torch.save(tensor, StringIO.StringIO)

* Skip test_serialization_container_filelike. Investigation pending.

* Address comments

* Fix _test_serialization_container

* Address comments

* fix comment

* Use PyBuffer_FromReadWriteMemory

* Fix build by removing inlining

* Fix clang builds?

* Address comments

* Don't use memoryview in python 2

* Ensure doRead/doWrite templates are instantiated before they're used in generic/serialization.cpp
2018-03-08 22:18:55 -05:00
..
expand_utils-inl.h Support out-of-place broadcast type definitions. 2017-06-22 12:49:06 -04:00
serialization.cpp torch.load() / torch.save() support arbitrary file-like object (#5466) 2018-03-08 22:18:55 -05:00
serialization.h torch.load() / torch.save() support arbitrary file-like object (#5466) 2018-03-08 22:18:55 -05:00
Storage.cpp Merge Variable and Tensor classes (#5225) 2018-02-23 18:03:31 -05:00
Storage.h Implement Variable.storage() (#3765) 2017-11-20 14:18:07 -05:00
StorageMethods.cpp torch.load() / torch.save() support arbitrary file-like object (#5466) 2018-03-08 22:18:55 -05:00
StorageSharing.cpp Delete dead Tensor code paths (#5417) 2018-02-27 17:58:09 -05:00
utils.cpp Delete dead Tensor code paths (#5417) 2018-02-27 17:58:09 -05:00
utils.h Delete dead Tensor code paths (#5417) 2018-02-27 17:58:09 -05:00