Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModelTC/LightX2V
/ is_available
Method
is_available
lightx2v_platform/base/nvidia.py:21–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
20
@staticmethod
21
def
is_available() -> bool:
22
try
:
23
import
torch
24
25
return
torch.cuda.is_available()
26
except
ImportError:
27
return
False
28
29
@staticmethod
30
def
get_device() -> str:
Callers
15
_decompose_to_lora
Function · 0.45
run_depth_midas_small
Function · 0.45
__init__.py
File · 0.45
check_ai_device
Function · 0.45
__init__
Method · 0.45
_sync_if_cuda
Method · 0.45
is_main_process
Function · 0.45
barrier
Method · 0.45
init
Method · 0.45
stop_task
Function · 0.45
stop_all_running_tasks
Function · 0.45
fi_sm_arch
Function · 0.45
Calls
no outgoing calls
Tested by
3
_first_visible_sm120_device
Function · 0.36
_skip_cuda_unavailable
Function · 0.36
main
Function · 0.36