pytorch/torch/csrc/generic
Edward Z. Yang a5818047c4 Rewrite serialization to correctly handle partial reads/writes in all cases (#12143)
Summary:
Previously, doRead/doWrite were functions that could return partial reads/writes,
and we checked for this case inconsistently in the call sites of serialization.cpp.
Now, these functions do NOT return the amount of bytes read/written, and instead
handle the necessary checking loop themselves.

Fixes #12042. Maybe.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12143

Differential Revision: D10097027

Pulled By: ezyang

fbshipit-source-id: fd222ab8a825bed352153648ad396acfe124a3e1
2018-09-27 19:09:53 -07:00
..
serialization.cpp Rewrite serialization to correctly handle partial reads/writes in all cases (#12143) 2018-09-27 19:09:53 -07:00
serialization.h Don't override Tensor, Storage macros defined outside torch/csrc in t… (#8243) 2018-06-07 16:10:10 -04:00
Storage.cpp Reimplement storage slicing. (#11314) 2018-09-06 16:11:59 -07:00
Storage.h Don't override Tensor, Storage macros defined outside torch/csrc in t… (#8243) 2018-06-07 16:10:10 -04:00
StorageMethods.cpp Rename real to scalar_t. (#11163) 2018-09-02 15:26:01 -07:00
StorageSharing.cpp Rename real to scalar_t. (#11163) 2018-09-02 15:26:01 -07:00
utils.cpp Have a single THTensor / THCTensor type. (#8288) 2018-06-08 17:57:44 -04:00
utils.h use at::Half in THC (#11322) 2018-09-12 17:39:37 -07:00