pub fn save<'a, B>(
tensors: impl IntoIterator<Item = &'a Tensor<B>>,
path: impl AsRef<Path>
) -> Result<(), ZyxError>where
B: Backend + 'a,
Expand description
Save all tensors into file. All parameters must be realized before calling this function, otherwise it will panic.
§Errors
Returns io erorr if there was problem writing file to filesystem.