Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
343
def
is_torch_available():
344
return
_torch_available
345
346
347
def
is_torch_xla_available():
Callers
15
get_all_auto_configured_models
Function · 0.90
check_all_models_are_auto_configured
Function · 0.90
__init__.py
File · 0.85
torch_utils.py
File · 0.85
is_tensor
Function · 0.85
__init_subclass__
Method · 0.85
peft_utils.py
File · 0.85
testing_utils.py
File · 0.85
torch_all_close
Function · 0.85
require_torch
Function · 0.85
require_torch_2
Function · 0.85
decorator
Function · 0.85
Calls
no outgoing calls
Tested by
11
torch_all_close
Function · 0.68
require_torch
Function · 0.68
require_torch_2
Function · 0.68
decorator
Function · 0.68
require_torch_gpu
Function · 0.68
require_torch_accelerator
Function · 0.68
require_torch_multi_gpu
Function · 0.68
require_torch_accelerator_with_training
Function · 0.68
_is_torch_fp16_available
Function · 0.68
_is_torch_fp64_available
Function · 0.68
backend_supports_training
Function · 0.68