MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetCpuFlags

Function GetCpuFlags

tensorflow/lite/kernels/internal/optimized/cpu_check.h:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25};
26
27inline 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

Callers 1

DepthwiseConvFunction · 0.85

Calls 2

ruy_contextMethod · 0.80

Tested by

no test coverage detected