Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AlayaLab/Hive
/ get_runtime_device
Function
get_runtime_device
app.py:26–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
24
25
26
def
get_runtime_device():
27
return
torch.device(
"cuda"
if
torch.cuda.is_available()
else
"cpu"
)
28
29
30
class
FlowSepPreprocessor:
Callers
5
load_audiosep
Function · 0.85
load_flowsep
Function · 0.85
separate_audiosep
Function · 0.85
_flowsep_process_chunk
Function · 0.85
separate_flowsep
Function · 0.85
Calls
1
device
Method · 0.45
Tested by
no test coverage detected