Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/huggingface/diffusers
/ is_torch_npu_available
Function
is_torch_npu_available
src/diffusers/utils/import_utils.py:245–246 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
243
244
245
def
is_torch_npu_available():
246
return
_torch_npu_available
247
248
249
def
is_torch_mlu_available():
Callers
15
main
Function · 0.90
train_dreambooth_lora_flux_kontext.py
File · 0.90
main
Function · 0.90
train_dreambooth_lora_hidream.py
File · 0.90
main
Function · 0.90
main
Function · 0.90
main
Function · 0.90
train_dreambooth_lora_lumina2.py
File · 0.90
main
Function · 0.90
train_dreambooth_lora_sana.py
File · 0.90
main
Function · 0.90
train_dreambooth_flux.py
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…