Skip to content

Commit 3f97860

Browse files
test
1 parent 55da7f3 commit 3f97860

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_autograd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ def test_matmul_4bit(
233233
out_bnb.data.copy_(out_torch)
234234
if device == "cuda":
235235
torch.cuda.synchronize()
236+
elif device == "hpu":
237+
torch.hpu.synchronize()
238+
236239
loss_bnb = torch.nn.functional.mse_loss(out_bnb, target).mean()
237240
loss_bnb.backward()
238241
gradA1 = A.grad

0 commit comments

Comments
 (0)