Skip to content

Commit

Permalink
Move torch_mlir import to the top (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
powderluv committed Jun 22, 2023
1 parent b9b8955 commit 1b0f391
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/stable_diffusion/web/index.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from multiprocessing import Process, freeze_support
import os
import sys

if sys.platform == "darwin":
# import before IREE to avoid torch-MLIR library issues
import torch_mlir

import shutil
import PIL, transformers # ensures inclusion in pysintaller exe generation
from apps.stable_diffusion.src import args, clear_all
Expand Down

0 comments on commit 1b0f391

Please sign in to comment.