Skip to content

Commit

Permalink
Force CPU in 2nd test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBossan committed Aug 11, 2023
1 parent e0c0ff8 commit 01723c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def test_can_unwrap_model_fp16(self):

def test_can_unwrap_model(self):
model = create_components()[0]
accelerator = Accelerator(mixed_precision="no")
accelerator = Accelerator(mixed_precision="no", cpu=True)
inputs = torch.randn(10, 2)
model = accelerator.prepare(model)
model(inputs) # sanity check that this works
Expand Down

0 comments on commit 01723c3

Please sign in to comment.