ebetica / autogradpp

Direct C++ Interface to PyTorch
MIT License
80 stars 12 forks source link

Provide tensor serialization methods for all archive formats #31

Closed jgehring closed 6 years ago

jgehring commented 6 years ago

The previous implementation did not compile if an application would also use other archive formats (at least not for me on macOS). Hence, for maximum flexibility, provide tensor serialization methods for all archive formats offered by Cereal. For binary archives, we can use an efficient implementation (the previous one) which avoids extra copies. For other archives, fall back to serializing a vector instead.