Serialization#
-
void metatensor_torch::save(const std::string &path, TorchTensorMap tensor)#
Save the given
TensorMapto a file atpath
-
TorchTensorMap metatensor_torch::load(const std::string &path)#
Load a previously saved
TensorMapfrom the given path.