Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pt): lower the atol for dpa2 test #3785

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/tests/consistent/descriptor/test_dpa2.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def atol(self) -> float:
add_tebd_to_repinit_out,
) = self.param
if precision == "float64":
return 1e-10
return 1e-8
elif precision == "float32":
return 1e-4
else:
Expand Down
2 changes: 1 addition & 1 deletion source/tests/pt/model/test_dpa2.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_consistency(
dtype = PRECISION_DICT[prec]
rtol, atol = get_tols(prec)
if prec == "float64":
atol = 1e-11 # marginal GPU test cases...
atol = 1e-8 # marginal GPU test cases...

repinit = RepinitArgs(
rcut=self.rcut,
Expand Down