Skip to content

Commit

Permalink
Update tests/ignite/engine/test_create_supervised.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Dec 9, 2024
1 parent 1b0ecc2 commit 7bee93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ignite/engine/test_create_supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def test_create_supervised_trainer_apex_error():
def mock_torch_cuda_amp_module():
with patch.dict(
"sys.modules",
{"torch.amp": None, "torch.cuda.amp.grad_scaler": None, "torch.amp.autocast_mode": None},
{"torch.amp": None, "torch.cuda.amp": None, "torch.amp.autocast_mode": None},
):
yield torch

Expand Down

0 comments on commit 7bee93e

Please sign in to comment.