Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jul 3, 2024
1 parent 137c7b9 commit d2589fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests_pytorch/trainer/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ def current_memory():
trainer.fit(model)

assert trainer.strategy.model is model
assert list(trainer.optimizers[0].state.values())[0]["exp_avg_sq"].device == torch.device("cpu")
assert list(trainer.optimizers[0].state.values())[0]["exp_avg_sq"].device == torch.device("cuda", 0)
assert trainer.callback_metrics["train_loss"].device == torch.device("cpu")

assert current_memory() <= initial
Expand Down

0 comments on commit d2589fc

Please sign in to comment.