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

Method FindDevice

core/lib/exec_context.cpp:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148std::vector<DevExecutor*>::iterator ExecContext::FindDevice(const char* dev_name)
149{
150 auto ir = dev_list_.begin();
151
152 while(ir != dev_list_.end())
153 {
154 DevExecutor* dev = *ir;
155
156 if(dev->GetName() == dev_name)
157 break;
158
159 ir++;
160 }
161
162 return ir;
163}
164
165ExecContext* ExecContext::GetDefaultContext(void)
166{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
GetNameMethod · 0.80

Tested by

no test coverage detected