Skip to content

Commit

Permalink
Fix autoquant do_bench import (pytorch#162)
Browse files Browse the repository at this point in the history
Just checking to see if CI passes

I might need to think a bit harder about nightly flags
  • Loading branch information
msaroufim authored Apr 23, 2024
1 parent a229517 commit 5694f8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion torchao/quantization/autoquant.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
safe_int_mm,
)
import torch.nn.functional as F
from torch._inductor.utils import do_bench
try:
from torch._inductor.utils import do_bench
except:
from torch._inductor.runtime.runtime_utils import do_bench

aten = torch.ops.aten

AUTOQUANT_CACHE = {}
Expand Down

0 comments on commit 5694f8e

Please sign in to comment.