Changelog#

All notable changes to metatensor-operations are documented here, following the keep a changelog format. This project follows Semantic Versioning.

Unreleased#

Added#

  • detach() operation to detach all values in a TensorMap/TensorBlock from any computational graph

  • requires_grad() operation to set the requires_grad of all values in a TensorMap/TensorBlock when storing data in torch Tensors.

Fixed#

Changed#

Removed#

  • the requires_grad parameter of the to() operation. This is now covered by detach() and requires_grad().

Version 0.1.0 - 2023-10-11#

Added#

  • Creation operations: empty_like(), ones_like(), zeros_like(), random_like(), block_from_array();

  • Linear algebra: dot(), lstsq(), solve();

  • Logic function: allclose(), equal(), equal_metadata();

  • Manipulation operations: drop_blocks(), join(), manipulate dimension, one_hot(), remove_gradients(), samples reduction, slice(), split(), to();

  • Mathematical functions: abs(), add(), divide(), multiply(), pow(), subtract();

  • Set operations: unique_metadata(), sort();