From d80a7126b0abdd532a9f731559827a23f2e565e0 Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Tue, 8 Jan 2019 17:52:37 +0000 Subject: Refactor: Don't include all ComputeLibrary function definitions everywhere. Just include the function definition that is specifically needed for each workload. Also, tighten up the scope where Compute Library functions are available. Knocks about 30seconds off a 4m30s single-threaded compile of the Neon workloads. Change-Id: Idac438f3bc77ff978295fbc9505cb42447def145 --- src/backends/neon/workloads/NeonActivationWorkload.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/backends/neon/workloads/NeonActivationWorkload.hpp') diff --git a/src/backends/neon/workloads/NeonActivationWorkload.hpp b/src/backends/neon/workloads/NeonActivationWorkload.hpp index fc7c6467dc..eefbfb6522 100644 --- a/src/backends/neon/workloads/NeonActivationWorkload.hpp +++ b/src/backends/neon/workloads/NeonActivationWorkload.hpp @@ -5,7 +5,10 @@ #pragma once -#include +#include + +#include +#include namespace armnn { @@ -21,7 +24,7 @@ public: void Execute() const override; private: - mutable arm_compute::NEActivationLayer m_ActivationLayer; + std::unique_ptr m_ActivationLayer; }; } //namespace armnn -- cgit v1.2.1