MCPcopy Create free account
hub / github.com/modelscope/modelscope / is_torch_cuda_available

Function is_torch_cuda_available

modelscope/utils/import_utils.py:240–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238
239
240def is_torch_cuda_available():
241 if is_torch_available():
242 import torch
243
244 return torch.cuda.is_available()
245 else:
246 return False
247
248
249def is_wenetruntime_available():

Callers

nothing calls this directly

Calls 1

is_torch_availableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…