Skip to content

Commit 79320a6

Browse files
Update src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py
Co-authored-by: Álvaro Somoza <asomoza@users.noreply.github.com>
1 parent 20c0740 commit 79320a6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/diffusers/pipelines/z_image/pipeline_z_image_inpaint.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
from .pipeline_output import ZImagePipelineOutput
3030

3131

32+
if is_torch_xla_available():
33+
import torch_xla.core.xla_model as xm
34+
35+
XLA_AVAILABLE = True
36+
else:
37+
XLA_AVAILABLE = False
38+
3239
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
3340

3441
EXAMPLE_DOC_STRING = """

0 commit comments

Comments
 (0)