blob: 264e276358c12346b954de0ed90c6817d59cfcf6 [file] [log] [blame]
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +01001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +01003// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Teresa Charlin588cbdf2022-01-19 15:55:37 +00008#include "ClBaseWorkload.hpp"
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +01009
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
Teresa Charlin588cbdf2022-01-19 15:55:37 +000019class ClGatherWorkload : public ClBaseWorkload<GatherQueueDescriptor>
Teresa Charlin9ad2e5b2020-04-10 22:34:48 +010020{
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