Skip to content

Commit

Permalink
Quick fix for quantization/custom op list loading (#1657)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Socek <[email protected]>
  • Loading branch information
dsocek authored and regisss committed Dec 23, 2024
1 parent f494e51 commit f2a9079
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/stable-diffusion/text_to_image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,11 @@ def main():

kwargs_call["quant_mode"] = args.quant_mode

# Instantiate a Stable Diffusion pipeline class
import habana_frameworks.torch.core as htcore # noqa: F401
if args.quant_mode != "disable":
# Import htcore here to support model quantization
import habana_frameworks.torch.core as htcore # noqa: F401

# Instantiate a Stable Diffusion pipeline class
if sdxl:
# SDXL pipelines
if controlnet:
Expand Down

0 comments on commit f2a9079

Please sign in to comment.