MCPcopy 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
26def get_runtime_device():
27 return torch.device("cuda" if torch.cuda.is_available() else "cpu")
28
29
30class FlowSepPreprocessor:

Callers 5

load_audiosepFunction · 0.85
load_flowsepFunction · 0.85
separate_audiosepFunction · 0.85
_flowsep_process_chunkFunction · 0.85
separate_flowsepFunction · 0.85

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected