mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Summary: This PR does three things: 1. Add support for serializing to `ostream` and deserializing from `istream`s in addition to files. This is after https://github.com/pytorch/pytorch/pull/11932 added support for streams in `torch::jit::ExportModule` and `torch::jit::load`. 2. Update the internal interface for how things get serialized into archives (e.g. use the more idiomatic `operator<<` instead of a `save` method). *The external interface does not change*. 3. Add documentation. ezyang ebetica Pull Request resolved: https://github.com/pytorch/pytorch/pull/12421 Reviewed By: ezyang Differential Revision: D10248529 Pulled By: goldsborough fbshipit-source-id: 6cde6abd0174e3fbf3579c05376a32db0b53755f |
||
|---|---|---|
| .. | ||
| main.cpp | ||
| support.h | ||