aboutsummaryrefslogtreecommitdiff
path: root/src/backends/neon/workloads/NeonGatherWorkload.hpp
blob: 4c208fe35cb2aa3b00e177baa18ae9ad1911cc6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include <armnn/backends/Workload.hpp>

#include <arm_compute/runtime/NEON/functions/NEGather.h>

namespace armnn
{
arm_compute::Status NeonGatherWorkloadValidate(const TensorInfo& input,
                                               const TensorInfo& indices,
                                               const TensorInfo& output,
                                               const GatherDescriptor& descriptor);

class NeonGatherWorkload : public BaseWorkload<GatherQueueDescriptor>
{
public:
    NeonGatherWorkload(const GatherQueueDescriptor& descriptor, const WorkloadInfo& info);
    virtual void Execute() const override;

private:
    mutable arm_compute::NEGather m_Layer;
};

} //namespace armnn