diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2019-01-08 17:52:37 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2019-01-08 18:00:12 +0000 |
commit | d80a7126b0abdd532a9f731559827a23f2e565e0 (patch) | |
tree | e04f6454e2353469dd9806b2a589c54b61dd777d /src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp | |
parent | a1d3c6a49f35d7d3f11cc7e1b588d1d5401bdbf1 (diff) | |
download | armnn-d80a7126b0abdd532a9f731559827a23f2e565e0.tar.gz |
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
Diffstat (limited to 'src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp')
-rw-r--r-- | src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp b/src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp index ec1661d642..1cd8be109a 100644 --- a/src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp +++ b/src/backends/neon/workloads/NeonFullyConnectedWorkload.hpp @@ -5,9 +5,12 @@ #pragma once -#include <neon/workloads/NeonWorkloadUtils.hpp> +#include <backendsCommon/Workload.hpp> +#include <arm_compute/core/Error.h> +#include <arm_compute/runtime/IFunction.h> #include <arm_compute/runtime/MemoryManagerOnDemand.h> +#include <arm_compute/runtime/Tensor.h> #include <memory> @@ -28,7 +31,7 @@ public: virtual void Execute() const override; private: - mutable arm_compute::NEFullyConnectedLayer m_FullyConnectedLayer; + std::unique_ptr<arm_compute::IFunction> m_FullyConnectedLayer; std::unique_ptr<arm_compute::Tensor> m_WeightsTensor; std::unique_ptr<arm_compute::Tensor> m_BiasesTensor; |