ArmNN
 24.08
ClPermuteWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017-2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "ClBaseWorkload.hpp"
10 
11 #include <armnn/TypesUtils.hpp>
12 #include <arm_compute/runtime/CL/functions/CLPermute.h>
13 
14 #include <string>
15 
16 namespace armnn
17 {
18 
19 arm_compute::Status ClPermuteWorkloadValidate(const TensorInfo& input,
20  const TensorInfo& output,
21  const PermuteDescriptor& descriptor);
22 
23 class ClPermuteWorkload : public ClBaseWorkload<PermuteQueueDescriptor>
24 {
25 public:
26  ClPermuteWorkload(const PermuteQueueDescriptor& descriptor,
27  const WorkloadInfo& info,
28  const arm_compute::CLCompileContext& clCompileContext);
29  void Execute() const override;
30 
31 private:
33  mutable arm_compute::CLPermute m_PermuteFunction;
34 };
35 
36 } // namespace armnn
armnn::ClPermuteWorkload::ClPermuteWorkload
ClPermuteWorkload(const PermuteQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClPermuteWorkload.cpp:29
WorkloadData.hpp
TypesUtils.hpp
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClPermuteWorkload
Definition: ClPermuteWorkload.hpp:23
armnn::ClPermuteWorkloadValidate
arm_compute::Status ClPermuteWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const PermuteDescriptor &descriptor)
Definition: ClPermuteWorkload.cpp:17
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::BaseWorkload
Definition: Workload.hpp:33
armnn::Status
Status
Definition: Types.hpp:42
armnn::ClPermuteWorkload::Execute
void Execute() const override
Definition: ClPermuteWorkload.cpp:55
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp
armnn::PermuteQueueDescriptor
Definition: WorkloadData.hpp:191