You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
I think it would be easier for now if we limit ourselves to the forward functions, since in the fit function operations happen that cannot be completely reproduced with equistore operations at the moment. But we keep the long term plan to replace it
Add optional torch.nn.Module inheritance on the transformers and estimators
Add this inheritance class if torch is installed. That way we can get a class that is torch.jit.compile'able in case TensorMaps with torch.tensor's are used. In the cases where torch is not installed or a TensorMap with numpy.ndarray's are used, then at least it can be dumped as pickle object.
We need to check if the torch.jit.compile store gives a good error message when the object contains torch.tensor objects (e.g. weight matrix in Ridge) to store data, so the user knows why torch.jit.compile does not work in these cases
Because torch does not support all options that scipy.linalg.solve does, we might want to do a fitting on TensorMaps with numpy.ndarray's and then change the data to torch.tensor's to later use the estimator/transformer as a TorchScript -- After discussion mentioned in Change linear system solver from numpy to scipy metatensor/metatensor#152 we might be able to recreate the other solvers with torch operations. The numerical stability might differ between numpy and torch, but at least the same methods should be available
Removing numpy torch layer
small refactor removing the top level with the numpy and torch folder, because they get merged by using equistore.operations to modules.
The text was updated successfully, but these errors were encountered:
Moved this from initial PR #24
This is basically issue metatensor/metatensor#133 for the equisolve side
Replacing numpy operations with equistore operations in our transformers/estimators
I think it would be easier for now if we limit ourselves to the forward functions, since in the fit function operations happen that cannot be completely reproduced with equistore operations at the moment. But we keep the long term plan to replace it
Add optional torch.nn.Module inheritance on the transformers and estimators
Add this inheritance class if torch is installed. That way we can get a class that is torch.jit.compile'able in case TensorMaps with torch.tensor's are used. In the cases where torch is not installed or a TensorMap with numpy.ndarray's are used, then at least it can be dumped as pickle object.
Removing numpy torch layer
numpy
andtorch
folder, because they get merged by using equistore.operations to modules.The text was updated successfully, but these errors were encountered: