ArmNN
 21.11
RefPermuteWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 #include <armnn/TypesUtils.hpp>
11 
12 namespace armnn
13 {
14 
15 template <armnn::DataType DataType>
16 class RefPermuteWorkload : public TypedWorkload<PermuteQueueDescriptor, DataType>
17 {
18 public:
19  static const std::string& GetName()
20  {
21  static const std::string name = std::string("RefPermute") + GetDataTypeName(DataType) + "Workload";
22  return name;
23  }
24 
27  void Execute() const override;
28  void ExecuteAsync(WorkingMemDescriptor& workingMemDescriptor) override;
29 private:
30  void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
31 };
32 
39 
40 } //namespace armnn
static const std::string & GetName()
void ExecuteAsync(WorkingMemDescriptor &workingMemDescriptor) override
Copyright (c) 2021 ARM Limited and Contributors.
constexpr const char * GetDataTypeName(DataType dataType)
Definition: TypesUtils.hpp:202
DataType
Definition: Types.hpp:35
void Execute() const override