diff options
Diffstat (limited to 'src/backends/cl/workloads/ClGatherWorkload.hpp')
-rw-r--r-- | src/backends/cl/workloads/ClGatherWorkload.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/backends/cl/workloads/ClGatherWorkload.hpp b/src/backends/cl/workloads/ClGatherWorkload.hpp new file mode 100644 index 0000000000..5dbeaade59 --- /dev/null +++ b/src/backends/cl/workloads/ClGatherWorkload.hpp @@ -0,0 +1,28 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include <backendsCommon/Workload.hpp> + +#include <arm_compute/runtime/CL/functions/CLGather.h> + +namespace armnn +{ +arm_compute::Status ClGatherWorkloadValidate(const TensorInfo& input, + const TensorInfo& indices, + const TensorInfo& output); + +class ClGatherWorkload : public BaseWorkload<GatherQueueDescriptor> +{ +public: + ClGatherWorkload(const GatherQueueDescriptor& descriptor, const WorkloadInfo& info); + void Execute() const override; + +private: + mutable arm_compute::CLGather m_Layer; +}; + +} // namespace armnn |