We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e32212b commit 1957834Copy full SHA for 1957834
src/diffusers/utils/import_utils.py
@@ -420,8 +420,8 @@ def get_major_and_minor_from_version(full_version):
420
@lru_cache
421
def is_torch_xpu_available(check_device=False):
422
"""
423
- Checks if XPU acceleration is available either via `intel_extension_for_pytorch` or
424
- via stock PyTorch (>=2.4) and potentially if a XPU is in the environment
+ Checks if XPU acceleration is available either via `intel_extension_for_pytorch` or via stock PyTorch (>=2.4) and
+ potentially if a XPU is in the environment
425
426
if not is_torch_available():
427
return False
0 commit comments