ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
onert::ir::OperationDumper Class Reference

#include <OperationDumper.h>

Collaboration diagram for onert::ir::OperationDumper:

Public Member Functions

 OperationDumper (const std::string &start_msg)
 
void visit (const operation::ArgMinMax &) override
 
void visit (const operation::BatchToSpaceND &node) override
 
void visit (const operation::BCQFullyConnected &node) override
 
void visit (const operation::BinaryArithmetic &node) override
 
void visit (const operation::BroadcastTo &) override
 
void visit (const operation::Comparison &) override
 
void visit (const operation::Concat &node) override
 
void visit (const operation::Conv2D &node) override
 
void visit (const operation::ConvertFp16ToFp32 &node) override
 
void visit (const operation::ConvertFp32ToFp16 &node) override
 
void visit (const operation::DepthToSpace &) override
 
void visit (const operation::DepthwiseConv2D &node) override
 
void visit (const operation::ElementwiseActivation &) override
 
void visit (const operation::ElementwiseBinary &) override
 
void visit (const operation::ElementwiseUnary &) override
 
void visit (const operation::EmbeddingLookup &) override
 
void visit (const operation::ExpandDims &) override
 
void visit (const operation::Fill &) override
 
void visit (const operation::FullyConnected &node) override
 
void visit (const operation::Gather &) override
 
void visit (const operation::HashtableLookup &) override
 
void visit (const operation::InstanceNorm &) override
 
void visit (const operation::L2Normalization &) override
 
void visit (const operation::LocalResponseNormalization &) override
 
void visit (const operation::Loss &node) override
 
void visit (const operation::LSTM &) override
 
void visit (const operation::Pack &) override
 
void visit (const operation::Pad &) override
 
void visit (const operation::Permute &node) override
 
void visit (const operation::Pool2D &node) override
 
void visit (const operation::Pow &node) override
 
void visit (const operation::PReLU &) override
 
void visit (const operation::Range &) override
 
void visit (const operation::Rank &) override
 
void visit (const operation::Reduce &) override
 
void visit (const operation::Reshape &node) override
 
void visit (const operation::ResizeBilinear &) override
 
void visit (const operation::ResizeNearestNeighbor &) override
 
void visit (const operation::Reverse &) override
 
void visit (const operation::RmsNorm &) override
 
void visit (const operation::RNN &) override
 
void visit (const operation::Select &node) override
 
void visit (const operation::Shape &node) override
 
void visit (const operation::Softmax &node) override
 
void visit (const operation::SpaceToBatchND &) override
 
void visit (const operation::SpaceToDepth &) override
 
void visit (const operation::Split &) override
 
void visit (const operation::SquaredDifference &) override
 
void visit (const operation::Squeeze &) override
 
void visit (const operation::Slice &) override
 
void visit (const operation::StridedSlice &) override
 
void visit (const operation::StatelessRandomUniform &) override
 
void visit (const operation::Tile &) override
 
void visit (const operation::TopKV2 &) override
 
void visit (const operation::TransposeConv &) override
 
void visit (const operation::Transpose &) override
 
void visit (const operation::Unpack &) override
 
void visit (const operation::OneHot &) override
 
void visit (const operation::If &) override
 
void visit (const operation::While &) override
 
- Public Member Functions inherited from onert::ir::OperationVisitor
virtual ~OperationVisitor ()=default
 

Detailed Description

Definition at line 26 of file OperationDumper.h.

Constructor & Destructor Documentation

◆ OperationDumper()

onert::ir::OperationDumper::OperationDumper ( const std::string &  start_msg)

Definition at line 58 of file OperationDumper.cc.

59{
60 VERBOSE(LIR) << start_msg << std::endl;
61}
#define VERBOSE(name, lv)
Definition Log.h:71

References VERBOSE.

Member Function Documentation

◆ visit() [1/60]

void onert::ir::OperationDumper::visit ( const operation::ArgMinMax node)
override

Definition at line 63 of file OperationDumper.cc.

64{
65 std::string min_max = node.param().is_arg_max ? "(Max)" : "(Min)";
66 VERBOSE(LIR) << "* " << node.name() << min_max << std::endl;
67 VERBOSE(LIR) << " - Inputs : Input(" << node.getInputs().at(ArgMinMax::INPUT) << ") Axis("
68 << node.getInputs().at(ArgMinMax::AXIS) << ") " << std::endl;
69 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
70}

References onert::ir::OperandIndexSequence::at(), onert::ir::operation::ArgMinMax::AXIS, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ArgMinMax::INPUT, onert::ir::operation::ArgMinMax::Param::is_arg_max, onert::ir::IOperation::name(), onert::ir::operation::ArgMinMax::param(), and VERBOSE.

◆ visit() [2/60]

void onert::ir::OperationDumper::visit ( const operation::BatchToSpaceND node)
override

Definition at line 72 of file OperationDumper.cc.

73{
74 std::string block_size =
75 "BlockSize(" + std::to_string(node.getInputs().at(BatchToSpaceND::Input::BLOCK_SIZE).value()) +
76 ")";
77 dumpOpGeneric(node, block_size);
78}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [3/60]

void onert::ir::OperationDumper::visit ( const operation::BCQFullyConnected node)
override

Definition at line 80 of file OperationDumper.cc.

81{
82 VERBOSE(LIR) << "* " << node.name() << std::endl;
83 VERBOSE(LIR) << " - Inputs : IFM(" << node.getInputs().at(BCQFullyConnected::Input::INPUT)
84 << ") WeightsBinary("
85 << node.getInputs().at(BCQFullyConnected::Input::WEIGHTS_BINARY)
86 << ") WeightsScales("
87 << node.getInputs().at(BCQFullyConnected::Input::WEIGHTS_SCALES)
88 << ") WeightsClusters("
89 << node.getInputs().at(BCQFullyConnected::Input::WEIGHTS_CLUSTERS) << ") Bias("
90 << node.getInputs().at(BCQFullyConnected::Input::BIAS) << ")" << std::endl;
91 VERBOSE(LIR) << " - Output : OFM(" << node.getOutputs().at(0) << ")" << std::endl;
92}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [4/60]

void onert::ir::OperationDumper::visit ( const operation::BinaryArithmetic node)
override

Definition at line 94 of file OperationDumper.cc.

94{ dumpOpGeneric(node); }

◆ visit() [5/60]

void onert::ir::OperationDumper::visit ( const operation::BroadcastTo node)
override

Definition at line 96 of file OperationDumper.cc.

96{ dumpOpGeneric(node); }

◆ visit() [6/60]

void onert::ir::OperationDumper::visit ( const operation::Comparison node)
override

Definition at line 98 of file OperationDumper.cc.

98{ dumpOpGeneric(node); }

◆ visit() [7/60]

void onert::ir::OperationDumper::visit ( const operation::Concat node)
override

Definition at line 100 of file OperationDumper.cc.

100{ dumpOpGeneric(node); }

◆ visit() [8/60]

void onert::ir::OperationDumper::visit ( const operation::Conv2D node)
override

Definition at line 102 of file OperationDumper.cc.

103{
104 std::string padding_type =
105 node.param().padding.type == PaddingType::EXPLICIT ? "Explicit" : "Implicit";
106 dumpConvOp(node, padding_type);
107}

References onert::ir::EXPLICIT, onert::ir::operation::Conv2D::Param::padding, onert::ir::operation::Conv2D::param(), and onert::ir::Padding::type.

◆ visit() [9/60]

void onert::ir::OperationDumper::visit ( const operation::ConvertFp16ToFp32 node)
override

Definition at line 109 of file OperationDumper.cc.

109{ dumpOpGeneric(node); }

◆ visit() [10/60]

void onert::ir::OperationDumper::visit ( const operation::ConvertFp32ToFp16 node)
override

Definition at line 111 of file OperationDumper.cc.

111{ dumpOpGeneric(node); }

◆ visit() [11/60]

void onert::ir::OperationDumper::visit ( const operation::DepthToSpace node)
override

Definition at line 113 of file OperationDumper.cc.

113{ dumpOpGeneric(node); }

◆ visit() [12/60]

void onert::ir::OperationDumper::visit ( const operation::DepthwiseConv2D node)
override

Definition at line 115 of file OperationDumper.cc.

116{
117 std::string padding_type =
118 node.param().padding.type == PaddingType::EXPLICIT ? "Explicit" : "Implicit";
119 dumpConvOp(node, padding_type);
120}

References onert::ir::EXPLICIT, onert::ir::operation::DepthwiseConv2D::Param::padding, onert::ir::operation::DepthwiseConv2D::param(), and onert::ir::Padding::type.

◆ visit() [13/60]

void onert::ir::OperationDumper::visit ( const operation::ElementwiseActivation node)
override

Definition at line 122 of file OperationDumper.cc.

123{
124 std::string params;
125 if (node.param().op_type == ElementwiseActivation::Type::RELU)
126 {
127 params = " lower value(" + std::to_string(node.param().alpha) + ") upper value(" +
128 std::to_string(node.param().beta) + ")";
129 }
130 else if (node.param().op_type == ElementwiseActivation::Type::LEAKY_RELU)
131 {
132 params = " alpha value(" + std::to_string(node.param().alpha) + ")";
133 }
134 dumpOpGeneric(node, params);
135}

References onert::ir::operation::ElementwiseActivation::Param::alpha, onert::ir::operation::ElementwiseActivation::Param::beta, onert::ir::operation::ElementwiseActivation::Param::op_type, and onert::ir::operation::ElementwiseActivation::param().

◆ visit() [14/60]

void onert::ir::OperationDumper::visit ( const operation::ElementwiseBinary node)
override

Definition at line 137 of file OperationDumper.cc.

137{ dumpOpGeneric(node); }

◆ visit() [15/60]

void onert::ir::OperationDumper::visit ( const operation::ElementwiseUnary node)
override

Definition at line 139 of file OperationDumper.cc.

139{ dumpOpGeneric(node); }

◆ visit() [16/60]

void onert::ir::OperationDumper::visit ( const operation::EmbeddingLookup node)
override

Definition at line 141 of file OperationDumper.cc.

142{
143 VERBOSE(LIR) << "* " << node.name() << std::endl;
144 VERBOSE(LIR) << " - Inputs : Lookups(" << node.getInputs().at(EmbeddingLookup::Input::LOOKUPS)
145 << ") VALUES(" << node.getInputs().at(EmbeddingLookup::Input::VALUES) << ")"
146 << std::endl;
147 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
148}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [17/60]

void onert::ir::OperationDumper::visit ( const operation::ExpandDims node)
override

Definition at line 150 of file OperationDumper.cc.

151{
152 std::string axis =
153 "AXIS(" + std::to_string(node.getInputs().at(ExpandDims::Input::AXIS).value()) + ")";
154 dumpUnaryInputOp(node, axis);
155}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [18/60]

void onert::ir::OperationDumper::visit ( const operation::Fill node)
override

Definition at line 157 of file OperationDumper.cc.

158{
159 VERBOSE(LIR) << "* " << node.name() << std::endl;
160 VERBOSE(LIR) << " - Inputs : Shape(" << node.getInputs().at(Fill::Input::SHAPE) << ") Value("
161 << node.getInputs().at(Fill::Input::VALUE) << ")" << std::endl;
162 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
163}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [19/60]

void onert::ir::OperationDumper::visit ( const operation::FullyConnected node)
override

Definition at line 165 of file OperationDumper.cc.

166{
167 VERBOSE(LIR) << "* " << node.name() << std::endl;
168 VERBOSE(LIR) << " - Inputs : Input(" << node.getInputs().at(ArgMinMax::INPUT) << ") Weight("
169 << node.getInputs().at(FullyConnected::Input::WEIGHT) << ") Bias("
170 << node.getInputs().at(FullyConnected::Input::BIAS) << ")" << std::endl;
171 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
172}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ArgMinMax::INPUT, onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [20/60]

void onert::ir::OperationDumper::visit ( const operation::Gather node)
override

Definition at line 174 of file OperationDumper.cc.

175{
176 std::string indices =
177 "Indices(" + std::to_string(node.getInputs().at(Gather::Input::INDICES).value()) + ")";
178 dumpUnaryInputOp(node, indices);
179}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [21/60]

void onert::ir::OperationDumper::visit ( const operation::HashtableLookup node)
override

Definition at line 181 of file OperationDumper.cc.

182{
183 VERBOSE(LIR) << "* HashTableLookup" << std::endl;
184 VERBOSE(LIR) << " - Inputs : Lookups(" << node.getInputs().at(HashtableLookup::Input::LOOKUPS)
185 << ") Keys(" << node.getInputs().at(HashtableLookup::Input::KEYS) << ") Values("
186 << node.getInputs().at(HashtableLookup::Input::VALUES) << ")" << std::endl;
187 VERBOSE(LIR) << " - Outputs : Output(" << node.getInputs().at(HashtableLookup::Output::OUTPUT)
188 << ") Hits(" << node.getInputs().at(HashtableLookup::Output::HITS) << ")"
189 << std::endl;
190}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and VERBOSE.

◆ visit() [22/60]

void onert::ir::OperationDumper::visit ( const operation::If node)
override

Definition at line 439 of file OperationDumper.cc.

440{
441 VERBOSE(LIR) << "* " << node.name() << std::endl;
442 VERBOSE(LIR) << " - Inputs : "
443 << "Then subgraph (" << node.param().then_subg_index << ") Else subgraph ("
444 << node.param().else_subg_index << ") Inputs(" << node.getInputs() << ")"
445 << std::endl;
446 VERBOSE(LIR) << " - Output : Outputs(" << node.getOutputs() << ")" << std::endl;
447}

References onert::ir::operation::If::Param::else_subg_index, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), onert::ir::operation::If::param(), onert::ir::operation::If::Param::then_subg_index, and VERBOSE.

◆ visit() [23/60]

void onert::ir::OperationDumper::visit ( const operation::InstanceNorm node)
override

Definition at line 192 of file OperationDumper.cc.

193{
194 std::string inputs =
195 "Gamma(" + std::to_string(node.getInputs().at(InstanceNorm::Input::GAMMA).value()) + ") Beta(" +
196 std::to_string(node.getInputs().at(InstanceNorm::Input::BETA).value()) + ")";
197 dumpUnaryInputOp(node, inputs);
198}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [24/60]

void onert::ir::OperationDumper::visit ( const operation::L2Normalization node)
override

Definition at line 200 of file OperationDumper.cc.

200{ dumpOpGeneric(node); }

◆ visit() [25/60]

void onert::ir::OperationDumper::visit ( const operation::LocalResponseNormalization node)
override

Definition at line 202 of file OperationDumper.cc.

202{ dumpOpGeneric(node); }

◆ visit() [26/60]

void onert::ir::OperationDumper::visit ( const operation::Loss node)
override

Definition at line 204 of file OperationDumper.cc.

205{
206 VERBOSE(LIR) << "* " << node.name() << std::endl;
207 VERBOSE(LIR) << " - Inputs : Prediction(" << node.getInputs().at(Loss::Input::Y_PRED) << ") True("
208 << node.getInputs().at(Loss::Input::Y_TRUE) << ")" << std::endl;
209 VERBOSE(LIR) << " - Outputs : Output(" << node.getOutputs().at(0) << ")" << std::endl;
210}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [27/60]

void onert::ir::OperationDumper::visit ( const operation::LSTM node)
override

Definition at line 212 of file OperationDumper.cc.

213{
214 VERBOSE(LIR) << "* " << node.name() << std::endl;
215 VERBOSE(LIR)
216 << " - Inputs : Input(" << node.getInputs().at(LSTM::Input::INPUT)
217 << ") Input To Input Weights(" << node.getInputs().at(LSTM::Input::INPUT_TO_INPUT_WEIGHTS)
218 << ") Input To Forget Weights(" << node.getInputs().at(LSTM::Input::INPUT_TO_FORGET_WEIGHTS)
219 << ") Input To Cell Weights(" << node.getInputs().at(LSTM::Input::INPUT_TO_CELL_WEIGHTS)
220 << ") Input To Output Weights(" << node.getInputs().at(LSTM::Input::INPUT_TO_OUTPUT_WEIGHTS)
221 << ") Recurrent To Input Weights("
222 << node.getInputs().at(LSTM::Input::RECURRENT_TO_INPUT_WEIGHTS)
223 << ") Recurrent To Forget Weights("
224 << node.getInputs().at(LSTM::Input::RECURRENT_TO_FORGET_WEIGHTS)
225 << ") Recurrent To Cell Weights(" << node.getInputs().at(LSTM::Input::RECURRENT_TO_CELL_WEIGHTS)
226 << ") Recurrent To Output Weights("
227 << node.getInputs().at(LSTM::Input::RECURRENT_TO_OUTPUT_WEIGHTS) << ") Cell To Input Weights("
228 << node.getInputs().at(LSTM::Input::CELL_TO_INPUT_WEIGHTS) << ") Cell To Forget Weights("
229 << node.getInputs().at(LSTM::Input::CELL_TO_FORGET_WEIGHTS) << ") Cell To OUTPUT Weights("
230 << node.getInputs().at(LSTM::Input::CELL_TO_OUTPUT_WEIGHTS) << ") Input Gate Bias("
231 << node.getInputs().at(LSTM::Input::INPUT_GATE_BIAS) << ") Forget Gate Bias("
232 << node.getInputs().at(LSTM::Input::FORGET_GATE_BIAS) << ") Cell Bias("
233 << node.getInputs().at(LSTM::Input::CELL_BIAS) << ") Output Gate Bias("
234 << node.getInputs().at(LSTM::Input::OUTPUT_GATE_BIAS) << ") Projection Weights("
235 << node.getInputs().at(LSTM::Input::PROJECTION_WEIGHTS) << ") Projection Bias("
236 << node.getInputs().at(LSTM::Input::PROJECTION_BIAS) << ") Output State In("
237 << node.getInputs().at(LSTM::Input::OUTPUT_STATE_IN) << ") Cell State In("
238 << node.getInputs().at(LSTM::Input::CELL_STATE_IN);
239 if (node.getInputs().size() == 24)
240 {
241 VERBOSE(LIR) << ") Input Layer Normalization Weights("
242 << node.getInputs().at(LSTM::Input::INPUT_LAYER_NORMALIZATION_WEIGHTS)
243 << ") Forget Layer Normalization Weights("
244 << node.getInputs().at(LSTM::Input::FORGET_LAYER_NORMALIZATION_WEIGHTS)
245 << ") Cell Layer Normalization Weights("
246 << node.getInputs().at(LSTM::Input::CELL_LAYER_NORMALIZATION_WEIGHTS)
247 << ") Ouput Layer Normalization Weights("
248 << node.getInputs().at(LSTM::Input::OUTPUT_LAYER_NORMALIZATION_WEIGHTS);
249 }
250 VERBOSE(LIR) << ")" << std::endl;
251 VERBOSE(LIR) << " - Output : Scratch Buffer("
252 << node.getOutputs().at(LSTM::Output::SCRATCH_BUFFER) << ") Output State Out("
253 << node.getOutputs().at(LSTM::Output::OUTPUT_STATE_OUT) << ") Cell State Out("
254 << node.getOutputs().at(LSTM::Output::CELL_STATE_OUT) << ") Output("
255 << node.getOutputs().at(LSTM::Output::OUTPUT) << ")" << std::endl;
256}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::LSTM::name(), onert::ir::OperandIndexSequence::size(), and VERBOSE.

◆ visit() [28/60]

void onert::ir::OperationDumper::visit ( const operation::OneHot node)
override

Definition at line 431 of file OperationDumper.cc.

432{
433 VERBOSE(LIR) << "* " << node.name() << std::endl;
434 VERBOSE(LIR) << " - Inputs : "
435 << "Indices(" << node.getInputs().at(OneHot::Input::INDICES) << ") " << std::endl;
436 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
437}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [29/60]

void onert::ir::OperationDumper::visit ( const operation::Pack node)
override

Definition at line 258 of file OperationDumper.cc.

258{ dumpOpGeneric(node); }

◆ visit() [30/60]

void onert::ir::OperationDumper::visit ( const operation::Pad node)
override

Definition at line 260 of file OperationDumper.cc.

261{
262 std::string pad = "Pad(" + std::to_string(node.getInputs().at(Pad::Input::PAD).value()) + ")";
263 dumpUnaryInputOp(node, pad);
264}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [31/60]

void onert::ir::OperationDumper::visit ( const operation::Permute node)
override

Definition at line 266 of file OperationDumper.cc.

267{
268 std::string permute_type = "Unknown";
269
270 VERBOSE(LIR) << "* " << node.name() << std::endl;
271 VERBOSE(LIR) << " - Inputs : Input(" << node.getInputs().at(0) << ")" << std::endl;
272 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
273}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [32/60]

void onert::ir::OperationDumper::visit ( const operation::Pool2D node)
override

Definition at line 275 of file OperationDumper.cc.

276{
277 std::string padding_type =
278 node.param().padding.type == PaddingType::EXPLICIT ? "Explicit" : "Implicit";
279 VERBOSE(LIR) << "* " << node.name() << "(" << padding_type << ")" << std::endl;
280 VERBOSE(LIR) << " - Inputs : IFM(" << node.getInputs().at(Pool2D::Input::INPUT) << ")"
281 << std::endl;
282 VERBOSE(LIR) << " - Output : OFM(" << node.getOutputs().at(0) << ")" << std::endl;
283}

References onert::ir::OperandIndexSequence::at(), onert::ir::EXPLICIT, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::Pool2D::name(), onert::ir::operation::Pool2D::Param::padding, onert::ir::operation::Pool2D::param(), onert::ir::Padding::type, and VERBOSE.

◆ visit() [33/60]

void onert::ir::OperationDumper::visit ( const operation::Pow node)
override

Definition at line 285 of file OperationDumper.cc.

285{ dumpOpGeneric(node); }

◆ visit() [34/60]

void onert::ir::OperationDumper::visit ( const operation::PReLU node)
override

Definition at line 287 of file OperationDumper.cc.

288{
289 std::string alpha =
290 "Alpha(" + std::to_string(node.getInputs().at(PReLU::Input::ALPHA).value()) + ")";
291 dumpOpGeneric(node, alpha);
292}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [35/60]

void onert::ir::OperationDumper::visit ( const operation::Range node)
override

Definition at line 339 of file OperationDumper.cc.

340{
341 VERBOSE(LIR) << "* Range" << std::endl;
342 VERBOSE(LIR) << " - Inputs : Start(" << node.getInputs().at(Range::Input::START) << ")"
343 << " Limit(" << node.getInputs().at(Range::Input::LIMIT) << ")"
344 << " Delta(" << node.getInputs().at(Range::Input::DELTA) << ")" << std::endl;
345 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
346}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), and VERBOSE.

◆ visit() [36/60]

void onert::ir::OperationDumper::visit ( const operation::Rank node)
override

Definition at line 294 of file OperationDumper.cc.

294{ dumpOpGeneric(node); }

◆ visit() [37/60]

void onert::ir::OperationDumper::visit ( const operation::Reduce node)
override

Definition at line 296 of file OperationDumper.cc.

296{ dumpUnaryInputOp(node); }

◆ visit() [38/60]

void onert::ir::OperationDumper::visit ( const operation::Reshape node)
override

Definition at line 298 of file OperationDumper.cc.

299{
300 // optional param
301 std::string shape =
302 node.getInputs().size() == 2
303 ? "Shape(" + std::to_string(node.getInputs().at(Reshape::Input::SHAPE).value()) + ")"
304 : "Shape(not provided)";
305 dumpUnaryInputOp(node, shape);
306}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::OperandIndexSequence::size(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [39/60]

void onert::ir::OperationDumper::visit ( const operation::ResizeBilinear node)
override

Definition at line 308 of file OperationDumper.cc.

308{ dumpOpGeneric(node); }

◆ visit() [40/60]

void onert::ir::OperationDumper::visit ( const operation::ResizeNearestNeighbor node)
override

Definition at line 310 of file OperationDumper.cc.

310{ dumpOpGeneric(node); }

◆ visit() [41/60]

void onert::ir::OperationDumper::visit ( const operation::Reverse node)
override

Definition at line 312 of file OperationDumper.cc.

313{
314 std::string axis =
315 "Axis(" + std::to_string(node.getInputs().at(Reverse::Input::AXIS).value()) + ")";
316 dumpUnaryInputOp(node, axis);
317}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [42/60]

void onert::ir::OperationDumper::visit ( const operation::RmsNorm node)
override

Definition at line 319 of file OperationDumper.cc.

320{
321 std::string inputs =
322 "Gamma(" + std::to_string(node.getInputs().at(RmsNorm::Input::GAMMA).value()) + ")";
323 dumpUnaryInputOp(node, inputs);
324}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [43/60]

void onert::ir::OperationDumper::visit ( const operation::RNN node)
override

Definition at line 326 of file OperationDumper.cc.

327{
328 VERBOSE(LIR) << "* RNN" << std::endl;
329 VERBOSE(LIR) << " - Inputs : Input(" << node.getInputs().at(RNN::Input::INPUT) << ") Weights("
330 << node.getInputs().at(RNN::Input::WEIGHTS) << ") Recurrent Weights("
331 << node.getInputs().at(RNN::Input::RECURRENT_WEIGHTS) << ") Bias("
332 << node.getInputs().at(RNN::Input::BIAS) << ") Hidden State("
333 << node.getInputs().at(RNN::Input::HIDDEN_STATE_IN) << ")" << std::endl;
334 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(RNN::Output::OUTPUT)
335 << ") Hidden State(" << node.getInputs().at(RNN::Output::HIDDEN_STATE_OUT) << ")"
336 << std::endl;
337}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), and VERBOSE.

◆ visit() [44/60]

void onert::ir::OperationDumper::visit ( const operation::Select node)
override

Definition at line 348 of file OperationDumper.cc.

349{
350 VERBOSE(LIR) << "* Select" << std::endl;
351 VERBOSE(LIR) << " - Inputs : Condition(" << node.getInputs().at(Select::Input::CONDITION) << ")"
352 << " Input_X(" << node.getInputs().at(Select::Input::INPUT_TRUE) << ")"
353 << " Input_Y(" << node.getInputs().at(Select::Input::INPUT_FALSE) << ")"
354 << std::endl;
355 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
356}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), and VERBOSE.

◆ visit() [45/60]

void onert::ir::OperationDumper::visit ( const operation::Shape node)
override

Definition at line 358 of file OperationDumper.cc.

358{ dumpOpGeneric(node); }

◆ visit() [46/60]

void onert::ir::OperationDumper::visit ( const operation::Slice node)
override

Definition at line 388 of file OperationDumper.cc.

388{ dumpUnaryInputOp(node); }

◆ visit() [47/60]

void onert::ir::OperationDumper::visit ( const operation::Softmax node)
override

Definition at line 360 of file OperationDumper.cc.

360{ dumpOpGeneric(node); }

◆ visit() [48/60]

void onert::ir::OperationDumper::visit ( const operation::SpaceToBatchND node)
override

Definition at line 362 of file OperationDumper.cc.

363{
364 std::string inputs =
365 "BlockSize(" + std::to_string(node.getInputs().at(SpaceToBatchND::Input::BLOCK_SIZE).value()) +
366 ") Paddings(" + std::to_string(node.getInputs().at(SpaceToBatchND::Input::PADDINGS).value()) +
367 ")";
368 dumpUnaryInputOp(node, inputs);
369}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [49/60]

void onert::ir::OperationDumper::visit ( const operation::SpaceToDepth node)
override

Definition at line 371 of file OperationDumper.cc.

371{ dumpOpGeneric(node); }

◆ visit() [50/60]

void onert::ir::OperationDumper::visit ( const operation::Split node)
override

Definition at line 373 of file OperationDumper.cc.

373{ dumpOpGeneric(node); }

◆ visit() [51/60]

void onert::ir::OperationDumper::visit ( const operation::SquaredDifference node)
override

Definition at line 375 of file OperationDumper.cc.

375{ dumpOpGeneric(node); }

◆ visit() [52/60]

void onert::ir::OperationDumper::visit ( const operation::Squeeze node)
override

Definition at line 386 of file OperationDumper.cc.

386{ dumpOpGeneric(node); }

◆ visit() [53/60]

void onert::ir::OperationDumper::visit ( const operation::StatelessRandomUniform node)
override

Definition at line 377 of file OperationDumper.cc.

378{
379 VERBOSE(LIR) << "* StatelessRandomUniform" << std::endl;
380 VERBOSE(LIR) << " - Inputs : Shape(" << node.getInputs().at(StatelessRandomUniform::Input::SHAPE)
381 << " Seed(" << node.getInputs().at(StatelessRandomUniform::Input::SEED) << ")"
382 << std::endl;
383 VERBOSE(LIR) << " - Output : Output(" << node.getOutputs().at(0) << ")" << std::endl;
384}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), and VERBOSE.

◆ visit() [54/60]

void onert::ir::OperationDumper::visit ( const operation::StridedSlice node)
override

Definition at line 390 of file OperationDumper.cc.

390{ dumpUnaryInputOp(node); }

◆ visit() [55/60]

void onert::ir::OperationDumper::visit ( const operation::Tile node)
override

Definition at line 392 of file OperationDumper.cc.

393{
394 std::string multiples =
395 "Multiples(" + std::to_string(node.getInputs().at(Tile::Input::MULTIPLES).value()) + ")";
396 dumpUnaryInputOp(node, multiples);
397}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::util::Index< T, DummyTag >::value().

◆ visit() [56/60]

void onert::ir::OperationDumper::visit ( const operation::TopKV2 node)
override

Definition at line 399 of file OperationDumper.cc.

400{
401 VERBOSE(LIR) << "* TopKV2" << std::endl;
402 VERBOSE(LIR) << " - Inputs : Input(" << node.getInputs().at(TopKV2::Input::INPUT) << ")"
403 << std::endl;
404 VERBOSE(LIR) << " - Outputs : Values(" << node.getOutputs().at(TopKV2::Output::OUTPUT_VALUES)
405 << ") Indices(" << node.getOutputs().at(TopKV2::Output::OUTPUT_INDICES) << ")"
406 << std::endl;
407}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), and VERBOSE.

◆ visit() [57/60]

void onert::ir::OperationDumper::visit ( const operation::Transpose node)
override

Definition at line 421 of file OperationDumper.cc.

421{ dumpOpGeneric(node); }

◆ visit() [58/60]

void onert::ir::OperationDumper::visit ( const operation::TransposeConv node)
override

Definition at line 409 of file OperationDumper.cc.

410{
411 std::string padding_type =
412 node.param().padding.type == PaddingType::EXPLICIT ? "Explicit" : "Implicit";
413 VERBOSE(LIR) << "* TransposeConv(" << padding_type << ")" << std::endl;
414 VERBOSE(LIR) << " - Inputs : Output Shape("
415 << node.getInputs().at(TransposeConv::Input::OUTPUT_SHAPE) << ") KERNEL("
416 << node.getInputs().at(TransposeConv::Input::KERNEL) << ") IFM("
417 << node.getInputs().at(TransposeConv::Input::INPUT) << ")" << std::endl;
418 VERBOSE(LIR) << " - Output : OFM(" << node.getOutputs().at(0) << ")" << std::endl;
419}

References onert::ir::OperandIndexSequence::at(), onert::ir::EXPLICIT, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::TransposeConv::Param::padding, onert::ir::operation::TransposeConv::param(), onert::ir::Padding::type, and VERBOSE.

◆ visit() [59/60]

void onert::ir::OperationDumper::visit ( const operation::Unpack node)
override

Definition at line 423 of file OperationDumper.cc.

424{
425 VERBOSE(LIR) << "* " << node.name() << std::endl;
426 VERBOSE(LIR) << " - Inputs : Input(" << node.getInputs().at(Unpack::Input::INPUT) << ")"
427 << std::endl;
428 VERBOSE(LIR) << " - Output : Outputs(" << node.getOutputs() << ")" << std::endl;
429}

References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), and VERBOSE.

◆ visit() [60/60]

void onert::ir::OperationDumper::visit ( const operation::While node)
override

Definition at line 449 of file OperationDumper.cc.

450{
451 VERBOSE(LIR) << "* " << node.name() << std::endl;
452 VERBOSE(LIR) << " - Inputs : "
453 << "Cond subgraph (" << node.param().cond_subg_index << ") Body subgraph ("
454 << node.param().body_subg_index << ") Inputs(" << node.getInputs() << ")"
455 << std::endl;
456 VERBOSE(LIR) << " - Output : Outputs(" << node.getOutputs() << ")" << std::endl;
457}

References onert::ir::operation::While::Param::body_subg_index, onert::ir::operation::While::Param::cond_subg_index, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::IOperation::name(), onert::ir::operation::While::param(), and VERBOSE.


The documentation for this class was generated from the following files: