blob: 14835fb40b61e122569089e10c1be5618cf21d19 [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 "ClBaseWorkload.hpp"
Matthew Bentham14e46692018-09-20 15:35:30 +01009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLActivationLayer.h>
telsoa014fcda012018-03-09 14:13:49 +000011
12namespace armnn
13{
telsoa01c577f2c2018-08-31 09:22:23 +010014arm_compute::Status ClActivationWorkloadValidate(const TensorInfo& input,
15 const TensorInfo& output,
16 const ActivationDescriptor& descriptor);
telsoa014fcda012018-03-09 14:13:49 +000017
Teresa Charlin98b0dcb2022-01-18 22:09:29 +000018class ClActivationWorkload : public ClBaseWorkload<ActivationQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000019{
20public:
Sadik Armagane9444752020-12-02 11:28:58 +000021 ClActivationWorkload(const ActivationQueueDescriptor& descriptor,
22 const WorkloadInfo& info,
23 const arm_compute::CLCompileContext& clCompileContext);
telsoa014fcda012018-03-09 14:13:49 +000024 void Execute() const override;
25
26private:
27 mutable arm_compute::CLActivationLayer m_ActivationLayer;
28};
29
Matthew Bentham14e46692018-09-20 15:35:30 +010030} //namespace armnn