24.02
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
j
l
m
n
o
p
q
r
s
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
c
d
e
f
i
j
l
m
o
p
r
s
v
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
o
r
s
t
u
v
x
z
Functions
a
b
c
g
i
m
r
s
t
v
z
Variables
Typedefs
Macros
a
c
d
e
f
h
i
l
o
s
t
u
v
x
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
NeonRankWorkload.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 "
NeonBaseWorkload.hpp
"
9
#include <
armnn/backends/WorkloadData.hpp
>
10
11
#include "
NeonWorkloadUtils.hpp
"
12
13
namespace
armnn
14
{
15
16
struct
NeonRankWorkload
:
public
NeonBaseWorkload
<RankQueueDescriptor>
17
{
18
public
:
19
using
NeonBaseWorkload<RankQueueDescriptor>::NeonBaseWorkload
;
20
virtual
void
Execute
()
const override
21
{
22
ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID
(
"NeonRankWorkload_Execute"
);
23
24
const
NeonTensorHandle
* neonTensorHandle = PolymorphicDowncast<const NeonTensorHandle*>(
m_Data
.
m_Inputs
[0]);
25
const
int32_t rank =
static_cast<
int32_t
>
(neonTensorHandle->
GetShape
().
GetNumDimensions
());
26
27
std::memcpy(GetOutputTensorData<void>(0,
m_Data
), &rank,
sizeof
(int32_t));
28
m_Data
.
m_Outputs
[0]->Unmap();
29
}
30
};
31
32
}
//namespace armnn
WorkloadData.hpp
NeonBaseWorkload.hpp
armnn::NeonTensorHandle::GetShape
TensorShape GetShape() const override
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest ite...
Definition:
NeonTensorHandle.hpp:100
armnn::TensorShape::GetNumDimensions
unsigned int GetNumDimensions() const
Function that returns the tensor rank.
Definition:
Tensor.cpp:174
armnn::NeonRankWorkload::Execute
virtual void Execute() const override
Definition:
NeonRankWorkload.hpp:20
armnn::QueueDescriptor::m_Outputs
std::vector< ITensorHandle * > m_Outputs
Definition:
WorkloadData.hpp:27
armnn::BaseWorkload< RankQueueDescriptor >::m_Data
RankQueueDescriptor m_Data
Definition:
Workload.hpp:89
NeonWorkloadUtils.hpp
armnn::NeonRankWorkload
Definition:
NeonRankWorkload.hpp:16
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
Definition:
NeonWorkloadUtils.hpp:32
armnn::NeonBaseWorkload
Definition:
NeonBaseWorkload.hpp:13
armnn::NeonTensorHandle
Definition:
NeonTensorHandle.hpp:29
armnn::QueueDescriptor::m_Inputs
std::vector< ITensorHandle * > m_Inputs
Definition:
WorkloadData.hpp:26
src
backends
neon
workloads
NeonRankWorkload.hpp
Generated on Wed Feb 14 2024 16:36:16 for Arm NN by
1.8.17