ArmNN
 21.11
ClTransposeWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
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 ClTransposeWorkloadValidate(const TensorInfo& input,
20  const TensorInfo& output,
21  const TransposeDescriptor& descriptor);
22 
23 class ClTransposeWorkload : public BaseWorkload<TransposeQueueDescriptor>
24 {
25 public:
26  static const std::string& GetName()
27  {
28  static const std::string name = std::string("ClTransposeWorkload");
29  return name;
30  }
31 
33  const WorkloadInfo& info,
34  const arm_compute::CLCompileContext& clCompileContext);
35  void Execute() const override;
36 
37 private:
39  mutable arm_compute::CLPermute m_PermuteFunction;
40 };
41 
42 } // namespace armnn
void Execute() const override
static const std::string & GetName()
arm_compute::Status ClTransposeWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor)
Copyright (c) 2021 ARM Limited and Contributors.
ClTransposeWorkload(const TransposeQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Status
enumeration
Definition: Types.hpp:29
Contains information about TensorInfos of a layer.