24.02
ClTransposeWorkload.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2020-2023 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
#include "
ClBaseWorkload.hpp
"
9
#include <
armnn/backends/WorkloadData.hpp
>
10
11
#include <
armnn/TypesUtils.hpp
>
12
#include <arm_compute/runtime/CL/functions/CLPermute.h>
13
14
#include <string>
15
16
namespace
armnn
17
{
18
19
arm_compute::Status
ClTransposeWorkloadValidate
(
const
TensorInfo& input,
20
const
TensorInfo& output,
21
const
TransposeDescriptor& descriptor);
22
23
class
ClTransposeWorkload
:
public
ClBaseWorkload
<TransposeQueueDescriptor>
24
{
25
public
:
26
ClTransposeWorkload
(
const
TransposeQueueDescriptor
& descriptor,
27
const
WorkloadInfo
&
info
,
28
const
arm_compute::CLCompileContext& clCompileContext);
29
void
Execute
()
const override
;
30
31
private
:
32
using
BaseWorkload<TransposeQueueDescriptor>::m_Data
;
33
mutable
arm_compute::CLPermute m_PermuteFunction;
34
};
35
36
}
// namespace armnn
WorkloadData.hpp
TypesUtils.hpp
armnn::ClTransposeWorkload::ClTransposeWorkload
ClTransposeWorkload(const TransposeQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Definition:
ClTransposeWorkload.cpp:29
armnn::ClBaseWorkload
Definition:
ClBaseWorkload.hpp:13
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition:
WorkloadInfo.hpp:16
armnn::ClTransposeWorkloadValidate
arm_compute::Status ClTransposeWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TransposeDescriptor &descriptor)
Definition:
ClTransposeWorkload.cpp:17
armnn::BoostLogSeverityMapping::info
@ info
armnn::BaseWorkload
Definition:
Workload.hpp:33
armnn::Status
Status
Definition:
Types.hpp:42
armnn::TransposeQueueDescriptor
Definition:
WorkloadData.hpp:557
armnn::ClTransposeWorkload
Definition:
ClTransposeWorkload.hpp:23
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
armnn::ClTransposeWorkload::Execute
void Execute() const override
Definition:
ClTransposeWorkload.cpp:55
ClBaseWorkload.hpp
src
backends
cl
workloads
ClTransposeWorkload.hpp
Generated on Wed Feb 14 2024 16:36:16 for Arm NN by
1.8.17