Serialization#

void metatensor_torch::save(const std::string &path, TorchTensorMap tensor)#

Save the given TensorMap to a file at path

TorchTensorMap metatensor_torch::load(const std::string &path)#

Load a previously saved TensorMap from the given path.