Closed hugary1995 closed 3 months ago
The current API isn't the most ideal because we require one or two .tensor() calls to convert from neml2.tensors.LabeledTensor or neml2.tensors.BatchTensor to torch.Tensor. We should think about ways of allowing implicit conversion.
.tensor()
neml2.tensors.LabeledTensor
neml2.tensors.BatchTensor
torch.Tensor
The current API isn't the most ideal because we require one or two
.tensor()
calls to convert fromneml2.tensors.LabeledTensor
orneml2.tensors.BatchTensor
totorch.Tensor
. We should think about ways of allowing implicit conversion.