Changelog#
All notable changes to metatensor-torch are documented here, following the keep a changelog format. This project follows Semantic Versioning.
Unreleased#
Version 0.3.0 - 2024-03-01#
metatensor-torch C++#
Added#
ModelMetadata
to record metadata about a specific model such as it’s name, authors, etc.Added
interaction_range
andsupported_devices
toModelCapabilities
Changed#
System::species
has been renamed toSystem::types
.
metatensor-torch Python#
Added#
ModelMetadata
to record metadata about a specific model such as it’s name, authors, etc.Added
interaction_range
andsupported_devices
toModelCapabilities
Changed#
System.species
has been renamed toSystem.types
.
Version 0.2.1 - 2024-01-26#
metatensor-torch C++#
Added#
Offer serialization functionality as member functions (i.e.
TensorMap::load
) in addition to the existing free standing functions (i.e.metatensor_torch::load
) (#453)In-memory serialization with
TensorMap::save_buffer
,TensorMap::load_buffer
, and the respective free standing functions (#455)Serialization of Labels, with the same API as
TensorMap
(#455)
metatensor-torch Python#
Added#
Offer serialization functionality as member functions (i.e.
TensorMap.load
) in addition to the existing free standing functions (i.e.metatensor.torch.load
) (#453)In-memory serialization with
TensorMap.save_buffer
,TensorMap.load_buffer
, and the respective free standing functions (#455)Serialization of Labels, with the same API as
TensorMap
(#455)
Version 0.2.0 - 2024-01-08#
metatensor-torch C++#
Added#
New classes specifically tailored for atomistic models (#405):
System
defines the input of a model;NeighborsListOptions
allow a model to request a specific neighbors list;ModelRunOptions
,ModelOutput
andModelCapabilities
allow to statically describe capabilities of a model, and request specific outputs from it.
TensorBlock::to
,TensorMap::to
, andSystem::to
to change the device or dtype of torch Tensor stored by metatensorLabels::device
,TensorBlock::device
andTensorMap::device
; as well asTensorMap::scalar_type
, andTensorBlock::scalar_type
to query the current device and scalar type/dtype used by the data.metatensor_torch::version
function, returning the version of the code as a string.
Fixed#
We now check that all tensors in a
TensorBlock
/TensorMap
have the same dtype and device (#414)keys_to_properties
,keys_to_samples
andcomponents_to_properties
now keep the different Labels on the same device (#411)
metatensor-torch Python#
Added#
New classes specifically tailored for atomistic models (#405):
same classes as the C++ interfaces, in
metatensor.torch.atomistic
MetatensorAtomisticModel
as a way to wrap user-definedtorch.nn.Module
and export them in a unified way, handling unit conversions and metadata checks.
ASE calculator based on
MetatensorAtomisticModel
inmetatensor.torch.atomistic.ase_calculator
. This allow using arbitrary user-defined models to run simulations with ASE.TensorBlock.to
,TensorMap.to
andSystem.to
to change the device or dtype of torch Tensor stored by metatensorLabels.device
,TensorBlock.device
andTensorMap.device
; as well asTensorMap.dtype
, andTensorBlock.dtype
to query the current device and dtype used by the data.
Version 0.1.0 - 2023-10-11#
metatensor-torch C++#
Added#
TorchScript bindings to all metatensor-core class:
Labels
,LabelsEntry
,TensorBlock
, andTensorMap
;Implementation of
mts_array_t
/metatensor::DataArrayBase
fortorch::Tensor
;
metatensor-torch Python#
Added#
Expose TorchScript classes to Python;
Expose all functions from
metatensor-operations
as TorchScript compatible code;