MCPcopy 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
236def is_torch_available():
237 return _torch_available
238
239
240def is_torch_cuda_available():

Callers 9

fix_transformers_upgradeFunction · 0.90
require_torchFunction · 0.90
to_torch_datasetMethod · 0.90
to_custom_datasetMethod · 0.90
base.pyFile · 0.90
__init__.pyFile · 0.90
__init__.pyFile · 0.90
is_torch_cuda_availableFunction · 0.85
wrapperFunction · 0.85

Calls

no outgoing calls

Tested by 1

require_torchFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…