blob: d0f7d16f41b34ca1c6d3ef2ad02db2ac365ee709 [file] [log] [blame]
Aron Virginas-Tar82046942019-09-09 15:18:29 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <backendsCommon/Workload.hpp>
9
10#include <arm_compute/core/Error.h>
11#include <arm_compute/runtime/CL/functions/CLElementWiseUnaryLayer.h>
12
13namespace armnn
14{
15
16arm_compute::Status ClAbsWorkloadValidate(const TensorInfo& input, const TensorInfo& output);
17
18class ClAbsWorkload : public BaseWorkload<AbsQueueDescriptor>
19{
20public:
Sadik Armagane9444752020-12-02 11:28:58 +000021 ClAbsWorkload(const AbsQueueDescriptor& descriptor,
22 const WorkloadInfo& info,
23 const arm_compute::CLCompileContext& clCompileContext);
Aron Virginas-Tar82046942019-09-09 15:18:29 +010024 virtual void Execute() const override;
25
26private:
27 mutable arm_compute::CLAbsLayer m_AbsLayer;
28};
29
30} // namespace armnn