blob: eefbfb65226a56a9f36f145527f24ea2d497ade3 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
Matthew Benthamd80a7122019-01-08 17:52:37 +00008#include <backendsCommon/Workload.hpp>
9
10#include <arm_compute/core/Error.h>
11#include <arm_compute/runtime/IFunction.h>
telsoa014fcda012018-03-09 14:13:49 +000012
13namespace armnn
14{
telsoa01c577f2c2018-08-31 09:22:23 +010015
16arm_compute::Status NeonActivationWorkloadValidate(const TensorInfo& input,
17 const TensorInfo& output,
18 const ActivationDescriptor& descriptor);
19
Nattapat Chaimanowongd4b70592018-10-12 11:21:49 +010020class NeonActivationWorkload : public BaseWorkload<ActivationQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000021{
22public:
Nattapat Chaimanowongd4b70592018-10-12 11:21:49 +010023 NeonActivationWorkload(const ActivationQueueDescriptor& descriptor, const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000024 void Execute() const override;
25
26private:
Matthew Benthamd80a7122019-01-08 17:52:37 +000027 std::unique_ptr<arm_compute::IFunction> m_ActivationLayer;
telsoa014fcda012018-03-09 14:13:49 +000028};
Nattapat Chaimanowongd4b70592018-10-12 11:21:49 +010029
telsoa014fcda012018-03-09 14:13:49 +000030} //namespace armnn