Skip to content

Commit febeaac

Browse files
committed
fix version check
1 parent 8f33f55 commit febeaac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchao/quantization/autoquant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .quant_primitives import (
1010
safe_int_mm,
1111
)
12-
from torchao.utils import TORCH_VERSION_AFTER_2_4
12+
from torchao.utils import TORCH_VERSION_AFTER_2_3
1313
from torchao.quantization.utils import quantize_activation_per_token_absmax
1414

1515
import torch.nn.functional as F
@@ -221,7 +221,7 @@ def do_autoquant_bench(op, *args, **kwargs):
221221
graph = torch.cuda.CUDAGraph()
222222
with torch.cuda.graph(graph, stream=stream):
223223
op(*args, **kwargs)
224-
if TORCH_VERSION_AFTER_2_4:
224+
if TORCH_VERSION_AFTER_2_3:
225225
from torch._inductor.runtime.runtime_utils import do_bench_gpu
226226
res = do_bench_gpu(lambda: graph.replay(), warmup=warmup, rep=rep, return_mode="median")
227227
else:

0 commit comments

Comments
 (0)