MCPcopy Create free account
hub / github.com/OAID/Tengine / ExistDevice

Method ExistDevice

core/lib/exec_context.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool ExecContext::ExistDevice(const char* dev_name)
139{
140 auto ir = FindDevice(dev_name);
141
142 if(ir == dev_list_.end())
143 return false;
144 else
145 return true;
146}
147
148std::vector<DevExecutor*>::iterator ExecContext::FindDevice(const char* dev_name)
149{

Callers 3

set_custom_kernelFunction · 0.80
set_graph_deviceFunction · 0.80
set_node_deviceFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected