Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag1701 authored Mar 1, 2025
2 parents 9b0c377 + 6a6110b commit c31789e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
python-version: [3.9]
torch-version: [1.13.1, "2.*"]
torch-version: [1.13.1, 2.5]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
python-version: [3.9]
torch-version: ["2.*"]
torch-version: [2.5]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion nequip/train/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __call__(self, metrics) -> None:
if minimum is None:
self.minimums[key] = value
elif value >= (minimum - delta):
if not self.cumulative_delta and value > minimum:
if not self.cumulative_delta and value < minimum:
self.minimums[key] = value
self.counters[key] += 1
debug_args = f"EarlyStopping: {self.counters[key]} / {pat}"
Expand Down

0 comments on commit c31789e

Please sign in to comment.