Open
Description
Right now the TorchMD_Net module is tied to the idea that only one thing (and maybe its derivative) is returned:
torchmd-net/torchmdnet/models/model.py
Line 300 in a116847
With TensorNet it might be interesting to have more outputs. Say a scalar (energies), minus its derivative (forces) and some tensor feature.
I would like to discuss how to include this functionality while leaving the current TorchMD_Net interface as unmodified as possible.
A way to do this would be:
- Change the return type of TorchMD_Net to be an Union[Tensor, List[Tensor]]. derivative, if true, only diffs the first tensor.
torchmd-net/torchmdnet/models/model.py
Line 240 in a116847
The consequences of this is a possible TorchScript nightmare - Change the output models to take in a List[Tensor] for v. For instance here:
Metadata
Metadata
Assignees
Labels
No labels