24.08
RefTransposeWorkload.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
RefTransposeWorkload
:
public
TypedWorkload
<TransposeQueueDescriptor, DataType>
17
{
18
public
:
19
using
TypedWorkload<TransposeQueueDescriptor, DataType>::m_Data
;
20
using
TypedWorkload<TransposeQueueDescriptor, DataType>::TypedWorkload
;
21
void
Execute
()
const override
;
22
void
ExecuteAsync
(
ExecutionData
& executionData)
override
;
23
private
:
24
void
Execute
(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs)
const
;
25
};
26
27
using
RefTransposeBFloat16Workload
=
RefTransposeWorkload<DataType::BFloat16>
;
28
using
RefTransposeFloat16Workload
=
RefTransposeWorkload<DataType::Float16>
;
29
using
RefTransposeFloat32Workload
=
RefTransposeWorkload<DataType::Float32>
;
30
using
RefTransposeQAsymmS8Workload
=
RefTransposeWorkload<DataType::QAsymmS8>
;
31
using
RefTransposeQAsymm8Workload
=
RefTransposeWorkload<DataType::QAsymmU8>
;
32
using
RefTransposeQSymm16Workload
=
RefTransposeWorkload<DataType::QSymmS16>
;
33
34
}
//namespace armnn
TypesUtils.hpp
armnn::TypedWorkload
Definition:
Workload.hpp:101
armnn::RefTransposeWorkload::Execute
void Execute() const override
Definition:
RefTransposeWorkload.cpp:17
armnn::RefTransposeWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition:
RefTransposeWorkload.cpp:23
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
RefBaseWorkload.hpp
armnn::RefTransposeWorkload
Definition:
RefTransposeWorkload.hpp:16
armnn::experimental::ExecutionData
Definition:
ExecutionData.hpp:14
src
backends
reference
workloads
RefTransposeWorkload.hpp
Generated on Wed Aug 28 2024 14:31:51 for Arm NN by
1.8.17