Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OAID/Tengine
/ GetDeviceNum
Method
GetDeviceNum
core/lib/exec_context.cpp:85–94 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
83
}
84
85
int ExecContext::GetDeviceNum(void)
86
{
87
int num;
88
89
lock_.lock();
90
num = dev_list_.size();
91
lock_.unlock();
92
93
return num;
94
}
95
96
const char* ExecContext::GetDevice(int idx)
97
{
Callers
1
get_context_device_number
Function · 0.45
Calls
1
size
Method · 0.45
Tested by
no test coverage detected