Skip to content

Commit cfd22f6

Browse files
committed
[Intel GPU] Enable optim SR test
1 parent f92b898 commit cfd22f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_low_bit_optim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ def test_optim_cpu_offload_save_load(self):
419419
for p1, p2 in zip(model1.parameters(), model2.parameters()):
420420
torch.testing.assert_close(p2, p1)
421421

422+
@parametrize("device", _DEVICES)
422423
def test_optim_bf16_stochastic_round_correctness(self):
423-
device = "cuda" if torch.cuda.is_available() else "cpu"
424424
torch.manual_seed(2024)
425425
model1 = nn.Sequential(nn.Linear(32, 1024), nn.ReLU(), nn.Linear(1024, 128))
426426
model1.to(device)

0 commit comments

Comments
 (0)