aboutsummaryrefslogtreecommitdiff
path: root/chapters/data_nodes.adoc
blob: 4297a9a48bbea8667023ac1eb97185de4936a704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
//
// This confidential and proprietary software may be used only as
// authorised by a licensing agreement from ARM Limited
// (C) COPYRIGHT 2020-2021 ARM Limited
// ALL RIGHTS RESERVED
// The entire notice above must be reproduced on all authorised
// copies and copies may only be made to the extent permitted
// by a licensing agreement from ARM Limited.

=== Data Nodes

==== CONST

A node containing constant data for use as the input to an operation. May hold data in any of the supported data formats.

*Arguments:*

|===
|Argument|Type|Name|Shape|Description

|Attribute|out_t*|values|shape|Constant values
|Output|out_t*|output|shape|Output tensor of same type, size as the input tensor
|===

*Supported Data Types:*

|===
|Profile|Mode|out_t

|Any|Boolean|bool
|Any|signed 8|int8
|Any|signed 16|int16
|Any|signed 32|int32
|MI, MT|float|float
|===

==== IDENTITY

Returns a tensor with the same shape, type, and contents as the input.

*Arguments:*

|===
|Argument|Type|Name|Shape|Description

|Input|in_t|input1|shape|Input tensor
|Output|in_t*|output|shape|Output tensor of same type, size as the input tensor
|===

*Supported Data Types:*

|===
|Profile|Mode|in_t

|Any|Boolean|bool
|Any|signed 8|int8
|Any|signed 16|int16
|Any|signed 32|int32
|MI, MT|float|float
|===

==== IDENTITYN

Returns a list of tensors with the same shape, type, and contents as the input list of tensors.

*Arguments:*

|===
|Argument|Type|Name|Shape|Description

|Input|in_t|input1|[shape1, shape2, …]|List of input tensors
|Output|in_t*|output|[shape1, shape2, …]|List of output tensors of same type, size as the input tensors
|===

*Supported Data Types:*

|===
|Profile|Mode|in_t

|Any|Boolean|bool
|Any|signed 8|int8
|Any|signed 16|int16
|Any|signed 32|int32
|MI, MT|float|float
|===

==== PLACEHOLDER

A node where data will be inserted into the network at runtime. Generally used for inputs to the network.

*Arguments:*
|===
|Argument|Type|Name|Shape|Description

|Output|out_t*|output|shape|Output tensor of same type, size as the input tensor
|===

*Supported Data Types:*

|===
|Profile|Mode|out_t

|Any|Boolean|bool
|Any|unsigned 8|uint8
|Any|signed 8|int8
|Any|signed 16|int16
|Any|signed 32|int32
|MI, MT|float|float
|===