Skip to content

Commit

Permalink
Merge pull request #467 from mir-group/versioncheck
Browse files Browse the repository at this point in the history
support +cpu etc versions, fixes #459
  • Loading branch information
anjohan authored Oct 21, 2024
2 parents d3a7763 + f9d55e0 commit 1d672a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nequip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import warnings

# torch version checks
torch_version = packaging.version.parse(torch.__version__)
torch_version = packaging.version.parse(torch.__version__.split("+")[0])

# only allow 1.11*, 1.13* or higher (no 1.12.*)
assert (torch_version == packaging.version.parse("1.11")) or (
Expand Down

0 comments on commit 1d672a7

Please sign in to comment.