Skip to content

Commit

Permalink
test: move the pretrained model to the same device as current model b…
Browse files Browse the repository at this point in the history
…efore assertion (#19668)
  • Loading branch information
fnhirwa committed Mar 18, 2024
1 parent b3bd871 commit f4178d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/tests_pytorch/models/test_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def test_load_model_from_checkpoint(tmp_path, model_template):
"limit_test_batches": 2,
"callbacks": [ModelCheckpoint(dirpath=tmp_path, monitor="val_loss", save_top_k=-1)],
"default_root_dir": tmp_path,
"accelerator": "cpu",
}

# fit model
Expand Down

0 comments on commit f4178d5

Please sign in to comment.