Skip to content

Commit 2ee9f76

Browse files
committed
Ruff fixes
1 parent d51715a commit 2ee9f76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/float8/test_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import pytest
1414
import torch
1515
import torch.nn as nn
16+
1617
from torchao.utils import (
1718
TORCH_VERSION_AT_LEAST_2_5,
1819
is_sm_at_least_89,
@@ -536,7 +537,7 @@ def test_inference_mode(self):
536537
with torch.inference_mode(mode=True):
537538
m(x)
538539

539-
@unittest.skipIf(not is_sm_89(), "CUDA arch 8.9 not available")
540+
@unittest.skipIf(not is_sm_at_least_89(), "CUDA arch 8.9 not available")
540541
def test_quantize(self):
541542
x = torch.randn(32, 32, device="cuda")
542543
m = nn.Sequential(nn.Linear(32, 32)).cuda()

0 commit comments

Comments
 (0)