3 #include <torch/serialize/archive.h> 4 #include <torch/types.h> 7 inline serialize::OutputArchive& operator<<(
8 serialize::OutputArchive& archive,
10 archive.write(
"0", tensor);
14 inline serialize::InputArchive& operator>>(
15 serialize::InputArchive& archive,
17 archive.
read(
"0", tensor);