Skip to content

Commit 933e8c6

Browse files
committed
fix comment.
1 parent 74a810f commit 933e8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/utils/torch_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from typing import Callable, Dict, List, Optional, Tuple, Union
2121

2222
from . import logging
23-
from .import_utils import is_torch_available, is_torch_npu_available, is_torch_version
23+
from .import_utils import is_torch_available, is_torch_npu_available, is_torch_version, is_mlu_available
2424

2525

2626
if is_torch_available():
@@ -286,7 +286,7 @@ def get_device():
286286
return "xpu"
287287
elif torch.backends.mps.is_available():
288288
return "mps"
289-
elif torch.mlu.is_available():
289+
elif is_mlu_available():
290290
return "mlu"
291291
else:
292292
return "cpu"

0 commit comments

Comments
 (0)