Skip to content

Commit b7af6ab

Browse files
jerryzh168liangel-02
authored andcommitted
Fix autoquant after version util changes (#2858)
Summary: version semantics is fixed in #2786 and we are updating the version check logic accordingly Test Plan: python test/integration/test_integration.py -k test_autoquant_hp_float Reviewers: Subscribers: Tasks: Tags:
1 parent 5250f9d commit b7af6ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchao/quantization/autoquant.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ def do_autoquant_bench(op, *args, **kwargs):
344344
graph = torch.cuda.CUDAGraph()
345345
with torch.cuda.graph(graph, stream=stream):
346346
op(*args, **kwargs)
347-
# TODO: update to 2.8.0 after https://github.com/pytorch/ao/pull/2786 is landed
348-
if torch_version_at_least("2.9.0"):
347+
if torch_version_at_least("2.8.0"):
349348
from statistics import median
350349

351350
res = benchmarker.benchmark_gpu(

0 commit comments

Comments
 (0)