Skip to content

Commit

Permalink
Bug fix for TORCH_VERSION_AFTER_* importation (#433)
Browse files Browse the repository at this point in the history
* Bug fix for TORCH_VERSION_AFTER_* importation

Bug fix for TORCH_VERSION_AFTER_* importation

* Update benchmark_aq.py
  • Loading branch information
qingquansong committed Jun 25, 2024
1 parent c2cf973 commit 96d49cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/benchmark_aq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Int8WeightOnlyQuantizedLinearWeight,
Int4WeightOnlyQuantizedLinearWeight,
)
from torchao.quantization.utils import (
from torchao.utils import (
TORCH_VERSION_AFTER_2_4,
)
from torchao.quantization.quant_api import (
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/intmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pathlib

import torch
from torchao.quantization.utils import TORCH_VERSION_AFTER_2_4, TORCH_VERSION_AFTER_2_2
from torchao.utils import TORCH_VERSION_AFTER_2_4, TORCH_VERSION_AFTER_2_2


# Check if CUDA is available, if not, exit the script
Expand Down

0 comments on commit 96d49cd

Please sign in to comment.