Use torch.det to calculate volumes#130
Conversation
`torch.cross` without `dim` is deprecated.
There was a problem hiding this comment.
torch.det was the last tensor op in chgnet lacking MPS support which is why we refactored to torch.dot(lattice[0], torch.cross(lattice[1], lattice[2])) to support MPS earlier. based on tests passing on macos-14, looks like torch.det is now implemented in MPS so happy to merge.
I tested Currently, maybe we should change the code to |
|
interesting, that means the tests on edit: CI logs show |
Summary
torch.crosswithoutdimis deprecated.Todos
I'm not sure whether we need a
torch.abshere.