Skip to content

Commit

Permalink
Update source/tests/pt/test_dp_show.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Chenqqian Zhang <[email protected]>
  • Loading branch information
Chengqian-Zhang and coderabbitai[bot] authored May 24, 2024
1 parent ba6fef5 commit 4270df0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/tests/pt/test_dp_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class TestSingleTaskModel(unittest.TestCase):
def setUp(self):
input_json = str(Path(__file__).parent / "water/se_atten.json")
with open(input_json, "r") as f:
with open(input_json) as f:
self.config = json.load(f)
self.config["training"]["numb_steps"] = 1
self.config["training"]["save_freq"] = 1
Expand All @@ -37,7 +37,6 @@ def setUp(self):
trainer = get_trainer(deepcopy(self.config))
trainer.run()
os.system("dp --pt freeze")

def test_checkpoint(self):
INPUT = "model.pt"
ATTRIBUTES = "type-map descriptor fitting-net"
Expand Down

0 comments on commit 4270df0

Please sign in to comment.