blob: 8199aaf3380bd055cec0f853295d5810efba0789 [file] [log] [blame]
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +01001//
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/runtime/CL/functions/CLGather.h>
11
12namespace armnn
13{
14arm_compute::Status ClGatherWorkloadValidate(const TensorInfo& input,
15 const TensorInfo& indices,
Teresa Charlin52664732020-06-29 16:27:03 +010016 const TensorInfo& output,
17 const GatherDescriptor& descriptor);
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +010018
19class ClGatherWorkload : public BaseWorkload<GatherQueueDescriptor>
20{
21public:
Sadik Armagane9444752020-12-02 11:28:58 +000022 ClGatherWorkload(const GatherQueueDescriptor& descriptor,
23 const WorkloadInfo& info,
24 const arm_compute::CLCompileContext& clCompileContext);
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +010025 void Execute() const override;
26
27private:
28 mutable arm_compute::CLGather m_Layer;
29};
30
31} // namespace armnn