| 25 | }; |
| 26 | |
| 27 | inline void GetCpuFlags(CpuBackendContext* cpu_backend_context, |
| 28 | CpuFlags* cpu_flags) { |
| 29 | #if RUY_PLATFORM(ARM) |
| 30 | ruy::Context* ruy_context = cpu_backend_context->ruy_context(); |
| 31 | cpu_flags->neon_dotprod = |
| 32 | ruy_context != nullptr && (ruy_context->GetRuntimeEnabledPaths() & |
| 33 | ruy::Path::kNeonDotprod) != ruy::Path::kNone; |
| 34 | #else |
| 35 | cpu_flags->neon_dotprod = false; |
| 36 | #endif |
| 37 | } |
| 38 | |
| 39 | } // namespace tflite |
| 40 |
no test coverage detected