When running a model, the following UserWarning is raised in matgl.layers._basis.py:
.../site-packages/matgl/layers/_basis.py:121: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
root = torch.tensor(roots[i])
Pretty self-explanatory; line 121 needs updating in _basis.py.
Code snippet
No response
Log output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Email (Optional)
No response
Version
1.1.1
Which OS(es) are you using?
What happened?
When running a model, the following
UserWarning
is raised inmatgl.layers._basis.py
:Pretty self-explanatory; line 121 needs updating in
_basis.py
.Code snippet
No response
Log output
No response
Code of Conduct