ArmNN
 20.05
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  void Execute() const override;
34 
35 private:
37  mutable arm_compute::CLPermute m_PermuteFunction;
38 };
39 
40 } // 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) 2020 ARM Limited.
ClTransposeWorkload(const TransposeQueueDescriptor &descriptor, const WorkloadInfo &info)
Status
enumeration
Definition: Types.hpp:26
Contains information about inputs and outputs to a layer.