Skip to content

Commit

Permalink
Try a more tolerant check
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman committed Aug 23, 2024
1 parent efaf8de commit b2a7970
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/tests/TestTorchForce.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def forward(self, positions):
assert self.positions.device == self.device
assert positions.device == self.device
assert positions.dtype == self.dtype
print(positions)
print(self.positions)
assert pt.all(positions == self.positions)
assert pt.allclose(positions, self.positions)
return pt.sum(positions)

with NamedTemporaryFile() as fd:
Expand Down

0 comments on commit b2a7970

Please sign in to comment.