2 * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __LUCI_IR_CIRCLENODES_H__
18 #define __LUCI_IR_CIRCLENODES_H__
20 #include "Nodes/CircleAbs.h"
21 #include "Nodes/CircleAdd.h"
22 #include "Nodes/CircleAddN.h"
23 #include "Nodes/CircleArgMax.h"
24 #include "Nodes/CircleArgMin.h"
25 #include "Nodes/CircleAveragePool2D.h"
26 #include "Nodes/CircleBatchMatMul.h"
27 #include "Nodes/CircleBatchToSpaceND.h"
28 #include "Nodes/CircleBidirectionalSequenceLSTM.h"
29 #include "Nodes/CircleCast.h"
30 #include "Nodes/CircleCeil.h"
31 #include "Nodes/CircleConcatenation.h"
32 #include "Nodes/CircleConv2D.h"
33 #include "Nodes/CircleCos.h"
34 #include "Nodes/CircleCustom.h"
35 #include "Nodes/CircleDensify.h"
36 #include "Nodes/CircleDepthToSpace.h"
37 #include "Nodes/CircleDepthwiseConv2D.h"
38 #include "Nodes/CircleDequantize.h"
39 #include "Nodes/CircleDiv.h"
40 #include "Nodes/CircleElu.h"
41 #include "Nodes/CircleEqual.h"
42 #include "Nodes/CircleExp.h"
43 #include "Nodes/CircleExpandDims.h"
44 #include "Nodes/CircleFakeQuant.h"
45 #include "Nodes/CircleFill.h"
46 #include "Nodes/CircleFloor.h"
47 #include "Nodes/CircleFloorDiv.h"
48 #include "Nodes/CircleFloorMod.h"
49 #include "Nodes/CircleFullyConnected.h"
50 #include "Nodes/CircleGather.h"
51 #include "Nodes/CircleGatherNd.h"
52 #include "Nodes/CircleGelu.h"
53 #include "Nodes/CircleGreater.h"
54 #include "Nodes/CircleGreaterEqual.h"
55 #include "Nodes/CircleHardSwish.h"
56 #include "Nodes/CircleIf.h"
57 #include "Nodes/CircleL2Normalize.h"
58 #include "Nodes/CircleL2Pool2D.h"
59 #include "Nodes/CircleLeakyRelu.h"
60 #include "Nodes/CircleLess.h"
61 #include "Nodes/CircleLessEqual.h"
62 #include "Nodes/CircleLocalResponseNormalization.h"
63 #include "Nodes/CircleLog.h"
64 #include "Nodes/CircleLogicalAnd.h"
65 #include "Nodes/CircleLogicalNot.h"
66 #include "Nodes/CircleLogicalOr.h"
67 #include "Nodes/CircleLogistic.h"
68 #include "Nodes/CircleLogSoftmax.h"
69 #include "Nodes/CircleMatrixDiag.h"
70 #include "Nodes/CircleMatrixSetDiag.h"
71 #include "Nodes/CircleMaximum.h"
72 #include "Nodes/CircleMaxPool2D.h"
73 #include "Nodes/CircleMean.h"
74 #include "Nodes/CircleMinimum.h"
75 #include "Nodes/CircleMirrorPad.h"
76 #include "Nodes/CircleMul.h"
77 #include "Nodes/CircleNeg.h"
78 #include "Nodes/CircleNonMaxSuppressionV4.h"
79 #include "Nodes/CircleNonMaxSuppressionV5.h"
80 #include "Nodes/CircleNotEqual.h"
81 #include "Nodes/CircleOneHot.h"
82 #include "Nodes/CirclePack.h"
83 #include "Nodes/CirclePad.h"
84 #include "Nodes/CirclePadV2.h"
85 #include "Nodes/CirclePow.h"
86 #include "Nodes/CircleQuantize.h"
87 #include "Nodes/CirclePRelu.h"
88 #include "Nodes/CircleRange.h"
89 #include "Nodes/CircleRank.h"
90 #include "Nodes/CircleReduceAny.h"
91 #include "Nodes/CircleReduceMax.h"
92 #include "Nodes/CircleReduceMin.h"
93 #include "Nodes/CircleReduceProd.h"
94 #include "Nodes/CircleRelu.h"
95 #include "Nodes/CircleRelu6.h"
96 #include "Nodes/CircleReluN1To1.h"
97 #include "Nodes/CircleReshape.h"
98 #include "Nodes/CircleResizeBilinear.h"
99 #include "Nodes/CircleResizeNearestNeighbor.h"
100 #include "Nodes/CircleReverseSequence.h"
101 #include "Nodes/CircleReverseV2.h"
102 #include "Nodes/CircleRound.h"
103 #include "Nodes/CircleRsqrt.h"
104 #include "Nodes/CircleScatterNd.h"
105 #include "Nodes/CircleSegmentSum.h"
106 #include "Nodes/CircleSelect.h"
107 #include "Nodes/CircleSelectV2.h"
108 #include "Nodes/CircleShape.h"
109 #include "Nodes/CircleSin.h"
110 #include "Nodes/CircleSlice.h"
111 #include "Nodes/CircleSoftmax.h"
112 #include "Nodes/CircleSpaceToBatchND.h"
113 #include "Nodes/CircleSpaceToDepth.h"
114 #include "Nodes/CircleSparseToDense.h"
115 #include "Nodes/CircleSplit.h"
116 #include "Nodes/CircleSplitV.h"
117 #include "Nodes/CircleSqrt.h"
118 #include "Nodes/CircleSquare.h"
119 #include "Nodes/CircleSquaredDifference.h"
120 #include "Nodes/CircleSqueeze.h"
121 #include "Nodes/CircleStridedSlice.h"
122 #include "Nodes/CircleSub.h"
123 #include "Nodes/CircleSum.h"
124 #include "Nodes/CircleSVDF.h"
125 #include "Nodes/CircleTanh.h"
126 #include "Nodes/CircleTile.h"
127 #include "Nodes/CircleTopKV2.h"
128 #include "Nodes/CircleTranspose.h"
129 #include "Nodes/CircleTransposeConv.h"
130 #include "Nodes/CircleUnidirectionalSequenceLSTM.h"
131 #include "Nodes/CircleUnique.h"
132 #include "Nodes/CircleUnpack.h"
133 #include "Nodes/CircleWhere.h"
134 #include "Nodes/CircleWhile.h"
135 #include "Nodes/CircleZerosLike.h"
137 #include "Nodes/CircleBCQFullyConnected.h"
138 #include "Nodes/CircleBCQGather.h"
139 #include "Nodes/CircleInstanceNorm.h"
141 #include "Nodes/CircleConst.h"
142 #include "Nodes/CircleInput.h"
143 #include "Nodes/CircleOutput.h"
144 #include "Nodes/CircleVariable.h"
145 // Multi-output virtual nodes
146 #include "Nodes/CircleBidirectionalSequenceLSTMOut.h"
147 #include "Nodes/CircleCustomOut.h"
148 #include "Nodes/CircleIfOut.h"
149 #include "Nodes/CircleNonMaxSuppressionV4Out.h"
150 #include "Nodes/CircleNonMaxSuppressionV5Out.h"
151 #include "Nodes/CircleSplitOut.h"
152 #include "Nodes/CircleSplitVOut.h"
153 #include "Nodes/CircleTopKV2Out.h"
154 #include "Nodes/CircleUniqueOut.h"
155 #include "Nodes/CircleUnpackOut.h"
156 #include "Nodes/CircleWhileOut.h"
158 #include <loco/IR/Graph.h>
163 /// @brief Link GraphOutput with CircleOutput node
164 void link(loco::GraphOutput *, CircleOutput *);
166 /// @brief Link GraphInput with CircleInput node
167 void link(loco::GraphInput *, CircleInput *);
169 /// @brief Find a CircleOutput node with a given output index
170 CircleOutput *output_node(loco::Graph *g, const loco::GraphOutputIndex &index);
172 /// @brief Find a Pull node with a given input index
173 CircleInput *input_node(loco::Graph *g, const loco::GraphInputIndex &index);
177 #endif // __LUCI_IR_CIRCLENODES_H__