Skip to content

Commit b1121ac

Browse files
arlesniakagrabow
authored andcommitted
[Intel GPU] Enable optim SR test
1 parent f92b898 commit b1121ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_low_bit_optim.py

Lines changed: 2 additions & 2 deletions
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-
def test_optim_bf16_stochastic_round_correctness(self):
423-
device = "cuda" if torch.cuda.is_available() else "cpu"
422+
@parametrize("device", _DEVICES)
423+
def test_optim_bf16_stochastic_round_correctness(self, device):
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)