Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ is_torch_available
Function
is_torch_available
modelscope/utils/import_utils.py:236–237 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
234
235
236
def
is_torch_available():
237
return
_torch_available
238
239
240
def
is_torch_cuda_available():
Callers
9
fix_transformers_upgrade
Function · 0.90
require_torch
Function · 0.90
to_torch_dataset
Method · 0.90
to_custom_dataset
Method · 0.90
base.py
File · 0.90
__init__.py
File · 0.90
__init__.py
File · 0.90
is_torch_cuda_available
Function · 0.85
wrapper
Function · 0.85
Calls
no outgoing calls
Tested by
1
require_torch
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…