ArmNN
NotReleased
StringMapping.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2017 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
namespace
armnn
9
{
10
16
struct
StringMapping
17
{
18
public
:
19
enum
Id
{
20
RefAdditionWorkload_Execute
,
21
RefDivisionWorkload_Execute
,
22
RefMaximumWorkload_Execute
,
23
RefMinimumWorkload_Execute
,
24
RefMultiplicationWorkload_Execute
,
25
RefSubtractionWorkload_Execute
,
26
MAX_STRING_ID
27
};
28
29
const
char
*
Get
(
Id
id
)
const
30
{
31
return
m_Strings[id];
32
}
33
34
static
const
StringMapping
&
Instance
();
35
36
private
:
37
StringMapping
()
38
{
39
m_Strings[
RefAdditionWorkload_Execute
] =
"RefAdditionWorkload_Execute"
;
40
m_Strings[
RefDivisionWorkload_Execute
] =
"RefDivisionWorkload_Execute"
;
41
m_Strings[
RefMaximumWorkload_Execute
] =
"RefMaximumWorkload_Execute"
;
42
m_Strings[
RefMinimumWorkload_Execute
] =
"RefMinimumWorkload_Execute"
;
43
m_Strings[
RefMultiplicationWorkload_Execute
] =
"RefMultiplicationWorkload_Execute"
;
44
m_Strings[
RefSubtractionWorkload_Execute
] =
"RefSubtractionWorkload_Execute"
;
45
}
46
47
StringMapping
(
const
StringMapping
&) =
delete
;
48
StringMapping
& operator=(
const
StringMapping
&) =
delete
;
49
50
const
char
* m_Strings[
MAX_STRING_ID
];
51
};
52
53
}
//namespace armnn
armnn::StringMapping::RefMultiplicationWorkload_Execute
Definition:
StringMapping.hpp:24
armnn::StringMapping::RefSubtractionWorkload_Execute
Definition:
StringMapping.hpp:25
armnn::StringMapping::RefMinimumWorkload_Execute
Definition:
StringMapping.hpp:23
armnn::StringMapping
Definition:
StringMapping.hpp:16
armnn::StringMapping::Id
Id
Definition:
StringMapping.hpp:19
armnn::StringMapping::Instance
static const StringMapping & Instance()
Definition:
StringMapping.cpp:11
armnn
Definition:
BackendHelper.hpp:11
armnn::StringMapping::Get
const char * Get(Id id) const
Definition:
StringMapping.hpp:29
armnn::StringMapping::RefDivisionWorkload_Execute
Definition:
StringMapping.hpp:21
armnn::StringMapping::RefMaximumWorkload_Execute
Definition:
StringMapping.hpp:22
armnn::StringMapping::RefAdditionWorkload_Execute
Definition:
StringMapping.hpp:20
armnn::StringMapping::MAX_STRING_ID
Definition:
StringMapping.hpp:26
src
backends
reference
workloads
StringMapping.hpp
Generated on Fri Mar 13 2020 16:06:58 for ArmNN by
1.8.13