MCPcopy Create free account
hub / github.com/ARM-software/armnn / ParseComputeDevice

Function ParseComputeDevice

include/armnn/TypesUtils.hpp:214–232  ·  view source on GitHub ↗

Deprecated function that will be removed together with the Compute enum

Source from the content-addressed store, hash-verified

212/// Deprecated function that will be removed together with
213/// the Compute enum
214constexpr armnn::Compute ParseComputeDevice(const char* str)
215{
216 if (armnn::StrEqual(str, "CpuAcc"))
217 {
218 return armnn::Compute::CpuAcc;
219 }
220 else if (armnn::StrEqual(str, "CpuRef"))
221 {
222 return armnn::Compute::CpuRef;
223 }
224 else if (armnn::StrEqual(str, "GpuAcc"))
225 {
226 return armnn::Compute::GpuAcc;
227 }
228 else
229 {
230 return armnn::Compute::Undefined;
231 }
232}
233
234constexpr const char* GetDataTypeName(DataType dataType)
235{

Callers 1

InferenceTest.hppFile · 0.85

Calls 1

StrEqualFunction · 0.85

Tested by

no test coverage detected