ebetica / autogradpp

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

Don't serialize tensor size in bytes #68

Closed jgehring closed 6 years ago

jgehring commented 6 years ago

This information can easily be recovered from numel() and type().elementSizeInBytes().

Note that this will result in corrupt data when attempting to load previously saved tensors (which is unfortunate).