blob: 9dbfa07665f192e0b68702353264392ef7ad0776 [file] [log] [blame]
Sadik Armaganac472102020-03-24 09:54:36 +00001//
2// Copyright © 2020 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 ClNegWorkloadValidate(const TensorInfo& input, const TensorInfo& output);
17
18class ClNegWorkload : public BaseWorkload<ElementwiseUnaryQueueDescriptor>
19{
20public:
21 ClNegWorkload(const ElementwiseUnaryQueueDescriptor& descriptor, const WorkloadInfo& info);
22 virtual void Execute() const override;
23
24private:
25 mutable arm_compute::CLNegLayer m_NegLayer;
26};
27
28} // namespace armnn