20.11
RefTransposeWorkload.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
8
#include <
backendsCommon/Workload.hpp
>
9
10
#include <
armnn/TypesUtils.hpp
>
11
12
namespace
armnn
13
{
14
15
template
<armnn::DataType DataType>
16
class
RefTransposeWorkload
:
public
TypedWorkload
<TransposeQueueDescriptor, DataType>
17
{
18
public
:
19
static
const
std::string&
GetName
()
20
{
21
static
const
std::string name = std::string(
"RefTranspose"
) +
GetDataTypeName
(
DataType
) +
"Workload"
;
22
return
name;
23
}
24
25
using
TypedWorkload<TransposeQueueDescriptor, DataType>::m_Data
;
26
using
TypedWorkload<TransposeQueueDescriptor, DataType>::TypedWorkload
;
27
void
Execute
()
const override
;
28
};
29
30
using
RefTransposeBFloat16Workload
=
RefTransposeWorkload<DataType::BFloat16>
;
31
using
RefTransposeFloat16Workload
=
RefTransposeWorkload<DataType::Float16>
;
32
using
RefTransposeFloat32Workload
=
RefTransposeWorkload<DataType::Float32>
;
33
using
RefTransposeQAsymmS8Workload
=
RefTransposeWorkload<DataType::QAsymmS8>
;
34
using
RefTransposeQAsymm8Workload
=
RefTransposeWorkload<DataType::QAsymmU8>
;
35
using
RefTransposeQSymm16Workload
=
RefTransposeWorkload<DataType::QSymmS16>
;
36
37
}
//namespace armnn
armnn::RefTransposeWorkload
Definition:
RefTransposeWorkload.hpp:16
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::GetDataTypeName
constexpr const char * GetDataTypeName(DataType dataType)
Definition:
TypesUtils.hpp:180
TypesUtils.hpp
armnn::DataType
DataType
Definition:
Types.hpp:32
armnn::TypedWorkload
Definition:
Workload.hpp:52
armnn::RefTransposeWorkload::Execute
void Execute() const override
Definition:
RefTransposeWorkload.cpp:17
Workload.hpp
armnn::RefTransposeWorkload::GetName
static const std::string & GetName()
Definition:
RefTransposeWorkload.hpp:19
src
backends
reference
workloads
RefTransposeWorkload.hpp
Generated on Wed Nov 25 2020 09:59:14 for ArmNN by
1.8.13