Skip to content

Commit dcd77ce

Browse files
authored
Fix the missing parentheses when calling is_torchao_available in quantization_config.py. (huggingface#10961)
Update quantization_config.py
1 parent 11d8e3c commit dcd77ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/quantizers/quantization_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class QuantizationMethod(str, Enum):
4747
TORCHAO = "torchao"
4848

4949

50-
if is_torchao_available:
50+
if is_torchao_available():
5151
from torchao.quantization.quant_primitives import MappingType
5252

5353
class TorchAoJSONEncoder(json.JSONEncoder):

0 commit comments

Comments
 (0)