17 static thread_local
auto g_Interceptor = std::make_shared<NeonInterceptorScheduler>(arm_compute::Scheduler::get());
23 if (g_Interceptor->GetKernels() !=
nullptr)
27 g_Interceptor->SetKernels(&m_Kernels);
29 m_RealSchedulerType = arm_compute::Scheduler::get_type();
31 if(m_RealSchedulerType != arm_compute::Scheduler::Type::CUSTOM)
34 m_RealScheduler = &arm_compute::Scheduler::get();
35 arm_compute::Scheduler::set(armnn::PolymorphicPointerDowncast<arm_compute::IScheduler>(g_Interceptor));
42 g_Interceptor->SetKernels(
nullptr);
43 arm_compute::Scheduler::set(m_RealSchedulerType);
44 m_RealScheduler =
nullptr;
49 return m_Kernels.size() > 0;
54 std::vector<Measurement> measurements = m_Kernels;
55 unsigned int kernel_number = 0;
56 for (
auto & kernel : measurements)
58 std::string kernelName = std::string(this->
GetName()) +
"/" + std::to_string(kernel_number++) +
": " + kernel
60 kernel.m_Name = kernelName;
67 return "NeonKernelTimer";