From c03ec57349792c427d445165974311a861264b47 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 6 Jun 2024 17:16:20 -0400 Subject: [PATCH] Revert "epsilon 1e-6" This reverts commit d25a29085eb80a5fc09fa8bc7220255579b68766. --- source/tests/pt/model/test_smooth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/tests/pt/model/test_smooth.py b/source/tests/pt/model/test_smooth.py index 3604271f6e..c33dddfab5 100644 --- a/source/tests/pt/model/test_smooth.py +++ b/source/tests/pt/model/test_smooth.py @@ -36,7 +36,7 @@ def test( ): generator = torch.Generator(device=env.DEVICE).manual_seed(GLOBAL_SEED) # displacement of atoms - epsilon = 1e-6 if self.epsilon is None else self.epsilon + epsilon = 1e-5 if self.epsilon is None else self.epsilon # required prec. relative prec is not checked. rprec = 0 aprec = 1e-5 if self.aprec is None else self.aprec @@ -168,7 +168,7 @@ def setUp(self): self.model = get_model(model_params).to(env.DEVICE) # less degree of smoothness, # error can be systematically removed by reducing epsilon - self.epsilon = 1e-6 + self.epsilon = 1e-5 self.aprec = 1e-5 @@ -180,7 +180,7 @@ def setUp(self): self.model = get_model(model_params).to(env.DEVICE) # less degree of smoothness, # error can be systematically removed by reducing epsilon - self.epsilon = 1e-6 + self.epsilon = 1e-5 self.aprec = 1e-5 @@ -192,7 +192,7 @@ def setUp(self): self.model = get_model(model_params).to(env.DEVICE) # less degree of smoothness, # error can be systematically removed by reducing epsilon - self.epsilon = 1e-6 + self.epsilon = 1e-5 self.aprec = 1e-5 @@ -203,7 +203,7 @@ def setUp(self): model_params["descriptor"]["repinit"]["rcut_smth"] = 3.5 self.type_split = True self.model = get_model(model_params).to(env.DEVICE) - self.epsilon, self.aprec = 1e-6, 1e-4 + self.epsilon, self.aprec = 1e-5, 1e-4 class TestEnergyModelDPA2_1(unittest.TestCase, SmoothTest):