Skip to content

Commit

Permalink
Fix accelerator in tests/test_train.py (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
caplett authored Aug 24, 2023
1 parent 8055898 commit 271972c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_train_epoch_gpu_amp(cfg_train: DictConfig) -> None:
HydraConfig().set_config(cfg_train)
with open_dict(cfg_train):
cfg_train.trainer.max_epochs = 1
cfg_train.trainer.accelerator = "cpu"
cfg_train.trainer.accelerator = "gpu"
cfg_train.trainer.precision = 16
train(cfg_train)

Expand Down

0 comments on commit 271972c

Please sign in to comment.