Deprecated function that will be removed together with the Compute enum
| 212 | /// Deprecated function that will be removed together with |
| 213 | /// the Compute enum |
| 214 | constexpr 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 | |
| 234 | constexpr const char* GetDataTypeName(DataType dataType) |
| 235 | { |
no test coverage detected