MCPcopy
hub / github.com/huggingface/diffusers / is_torch_available

Function is_torch_available

src/diffusers/utils/import_utils.py:237–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235
236
237def is_torch_available():
238 return _torch_available
239
240
241def is_torch_xla_available():

Callers 15

testing_utils.pyFile · 0.90
torch_all_closeFunction · 0.90
assert_tensors_closeFunction · 0.90
require_torchFunction · 0.90
require_torch_2Function · 0.90
decoratorFunction · 0.90
require_torch_multi_gpuFunction · 0.90
require_big_acceleratorFunction · 0.90

Calls

no outgoing calls

Tested by 15

torch_all_closeFunction · 0.72
assert_tensors_closeFunction · 0.72
require_torchFunction · 0.72
require_torch_2Function · 0.72
decoratorFunction · 0.72
require_torch_multi_gpuFunction · 0.72
require_big_acceleratorFunction · 0.72
_is_torch_fp16_availableFunction · 0.72
_is_torch_fp64_availableFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…