22.08
RefPermuteWorkload.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
#include "
RefBaseWorkload.hpp
"
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
25
using
TypedWorkload<PermuteQueueDescriptor, DataType>::m_Data
;
26
using
TypedWorkload<PermuteQueueDescriptor, DataType>::TypedWorkload
;
27
void
Execute
()
const override
;
28
void
ExecuteAsync
(
ExecutionData
& executionData)
override
;
29
private
:
30
void
Execute
(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs)
const
;
31
};
32
33
using
RefPermuteBFloat16Workload
=
RefPermuteWorkload<DataType::BFloat16>
;
34
using
RefPermuteFloat16Workload
=
RefPermuteWorkload<DataType::Float16>
;
35
using
RefPermuteFloat32Workload
=
RefPermuteWorkload<DataType::Float32>
;
36
using
RefPermuteQAsymmS8Workload
=
RefPermuteWorkload<DataType::QAsymmS8>
;
37
using
RefPermuteQAsymm8Workload
=
RefPermuteWorkload<DataType::QAsymmU8>
;
38
using
RefPermuteQSymm16Workload
=
RefPermuteWorkload<DataType::QSymmS16>
;
39
40
}
//namespace armnn
armnn::RefPermuteWorkload
Definition:
RefPermuteWorkload.hpp:16
armnn::RefPermuteWorkload::GetName
static const std::string & GetName()
Definition:
RefPermuteWorkload.hpp:19
armnn::RefPermuteWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition:
RefPermuteWorkload.cpp:23
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
armnn::GetDataTypeName
constexpr const char * GetDataTypeName(DataType dataType)
Definition:
TypesUtils.hpp:202
TypesUtils.hpp
armnn::DataType
DataType
Definition:
Types.hpp:48
armnn::TypedWorkload
Definition:
Workload.hpp:94
armnn::RefPermuteWorkload::Execute
void Execute() const override
Definition:
RefPermuteWorkload.cpp:17
armnn::experimental::ExecutionData
Definition:
ExecutionData.hpp:14
RefBaseWorkload.hpp
src
backends
reference
workloads
RefPermuteWorkload.hpp
Generated on Fri Aug 19 2022 14:38:31 for ArmNN by
1.8.13