Skip to content

Commit

Permalink
fix: remove added trainer arg
Browse files Browse the repository at this point in the history
  • Loading branch information
melo-gonzo committed Oct 4, 2024
1 parent 4c34741 commit ce112c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions matsciml/models/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def test_force_regression(egnn_config):
},
)
task = ForceRegressionTask(**egnn_config)
trainer = pl.Trainer(
num_sanity_val_steps=0, max_steps=5, logger=False, enable_checkpointing=False
)
trainer = pl.Trainer(max_steps=5, logger=False, enable_checkpointing=False)
trainer.fit(task, datamodule=devset)
# make sure losses are tracked
for key in ["energy", "force"]:
Expand Down Expand Up @@ -131,9 +129,7 @@ def test_force_regression_with_stress(egnn_config):
},
)
task = ForceRegressionTask(**egnn_config)
trainer = pl.Trainer(
num_sanity_val_steps=0, max_steps=5, logger=False, enable_checkpointing=False
)
trainer = pl.Trainer(max_steps=5, logger=False, enable_checkpointing=False)
trainer.fit(task, datamodule=devset)
# make sure losses are tracked
for key in ["energy", "force"]:
Expand Down

0 comments on commit ce112c6

Please sign in to comment.