MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / is_torch_available

Function is_torch_available

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

Source from the content-addressed store, hash-verified

341
342
343def is_torch_available():
344 return _torch_available
345
346
347def is_torch_xla_available():

Callers 15

__init__.pyFile · 0.85
torch_utils.pyFile · 0.85
is_tensorFunction · 0.85
__init_subclass__Method · 0.85
peft_utils.pyFile · 0.85
testing_utils.pyFile · 0.85
torch_all_closeFunction · 0.85
require_torchFunction · 0.85
require_torch_2Function · 0.85
decoratorFunction · 0.85

Calls

no outgoing calls

Tested by 11

torch_all_closeFunction · 0.68
require_torchFunction · 0.68
require_torch_2Function · 0.68
decoratorFunction · 0.68
require_torch_gpuFunction · 0.68
require_torch_multi_gpuFunction · 0.68
_is_torch_fp16_availableFunction · 0.68
_is_torch_fp64_availableFunction · 0.68