blob: 72ad47783477f4cffd135f8aeeb723e65b6e9b36 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
Teresa Charlin98b0dcb2022-01-18 22:09:29 +00002// Copyright © 2017 Arm Ltd and Contributors. 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
Teresa Charlin98b0dcb2022-01-18 22:09:29 +00008#include "NeonBaseWorkload.hpp"
Matthew Benthamd80a7122019-01-08 17:52:37 +00009
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 +010015arm_compute::Status NeonActivationWorkloadValidate(const TensorInfo& input,
16 const TensorInfo& output,
17 const ActivationDescriptor& descriptor);
18
Teresa Charlin98b0dcb2022-01-18 22:09:29 +000019class NeonActivationWorkload : public NeonBaseWorkload<ActivationQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000020{
21public:
Nattapat Chaimanowongd4b70592018-10-12 11:21:49 +010022 NeonActivationWorkload(const ActivationQueueDescriptor& descriptor, const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000023 void Execute() const override;
24
25private:
Matthew Benthamd80a7122019-01-08 17:52:37 +000026 std::unique_ptr<arm_compute::IFunction> m_ActivationLayer;
telsoa014fcda012018-03-09 14:13:49 +000027};
Nattapat Chaimanowongd4b70592018-10-12 11:21:49 +010028
telsoa014fcda012018-03-09 14:13:49 +000029} //namespace armnn