24.08
RefPermuteWorkload.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2017-2023 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
using
TypedWorkload<PermuteQueueDescriptor, DataType>::m_Data
;
20
using
TypedWorkload<PermuteQueueDescriptor, 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
RefPermuteBFloat16Workload
=
RefPermuteWorkload<DataType::BFloat16>
;
28
using
RefPermuteFloat16Workload
=
RefPermuteWorkload<DataType::Float16>
;
29
using
RefPermuteFloat32Workload
=
RefPermuteWorkload<DataType::Float32>
;
30
using
RefPermuteQAsymmS8Workload
=
RefPermuteWorkload<DataType::QAsymmS8>
;
31
using
RefPermuteQAsymm8Workload
=
RefPermuteWorkload<DataType::QAsymmU8>
;
32
using
RefPermuteQSymm16Workload
=
RefPermuteWorkload<DataType::QSymmS16>
;
33
34
}
//namespace armnn
armnn::RefPermuteWorkload
Definition:
RefPermuteWorkload.hpp:16
TypesUtils.hpp
armnn::TypedWorkload
Definition:
Workload.hpp:101
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
RefBaseWorkload.hpp
armnn::RefPermuteWorkload::Execute
void Execute() const override
Definition:
RefPermuteWorkload.cpp:17
armnn::experimental::ExecutionData
Definition:
ExecutionData.hpp:14
src
backends
reference
workloads
RefPermuteWorkload.hpp
Generated on Wed Aug 28 2024 14:31:51 for Arm NN by
1.8.17