Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
dcd77ce2
Unverified
Commit
dcd77ce2
authored
Mar 04, 2025
by
CyberVy
Committed by
GitHub
Mar 04, 2025
Browse files
Fix the missing parentheses when calling is_torchao_available in quantization_config.py. (#10961)
Update quantization_config.py
parent
11d8e3ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/quantizers/quantization_config.py
src/diffusers/quantizers/quantization_config.py
+1
-1
No files found.
src/diffusers/quantizers/quantization_config.py
View file @
dcd77ce2
...
...
@@ -47,7 +47,7 @@ class QuantizationMethod(str, Enum):
TORCHAO
=
"torchao"
if
is_torchao_available
:
if
is_torchao_available
()
:
from
torchao.quantization.quant_primitives
import
MappingType
class
TorchAoJSONEncoder
(
json
.
JSONEncoder
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment