ONE - On-device Neural Engine
|
#include <OperationValidator.h>
Public Member Functions | |
OperationValidator (void)=delete | |
OperationValidator (const Graph &graph) | |
void | operator() () |
void | visit (const operation::AddN &node) override |
void | visit (const operation::ArgMinMax &node) override |
void | visit (const operation::BatchMatMul &node) override |
void | visit (const operation::BatchToSpaceND &node) override |
void | visit (const operation::BinaryArithmetic &node) override |
void | visit (const operation::Comparison &node) override |
void | visit (const operation::Concat &node) override |
void | visit (const operation::Conv2D &node) override |
void | visit (const operation::DepthToSpace &node) override |
void | visit (const operation::DepthwiseConv2D &node) override |
void | visit (const operation::DetectionPostProcess &node) override |
void | visit (const operation::ElementwiseActivation &node) override |
void | visit (const operation::ElementwiseBinary &node) override |
void | visit (const operation::ElementwiseUnary &node) override |
void | visit (const operation::EmbeddingLookup &node) override |
void | visit (const operation::ExpandDims &node) override |
void | visit (const operation::Fill &node) override |
void | visit (const operation::Gather &node) override |
void | visit (const operation::HashtableLookup &node) override |
void | visit (const operation::Pack &node) override |
void | visit (const operation::Pad &node) override |
void | visit (const operation::Rank &node) override |
void | visit (const operation::ResizeBilinear &node) override |
void | visit (const operation::Reverse &node) override |
void | visit (const operation::RoPE &node) override |
void | visit (const operation::Select &node) override |
void | visit (const operation::Shape &node) override |
void | visit (const operation::Slice &node) override |
void | visit (const operation::Softmax &node) override |
void | visit (const operation::SpaceToBatchND &node) override |
void | visit (const operation::SpaceToDepth &node) override |
void | visit (const operation::Split &node) override |
void | visit (const operation::SquaredDifference &node) override |
void | visit (const operation::StatelessRandomUniform &node) override |
void | visit (const operation::StridedSlice &node) override |
void | visit (const operation::TransposeConv &node) override |
void | visit (const operation::Unpack &node) override |
void | visit (const operation::While &node) override |
Public Member Functions inherited from onert::ir::OperationVisitor | |
virtual | ~OperationVisitor ()=default |
Definition at line 38 of file OperationValidator.h.
|
delete |
onert::ir::OperationValidator::OperationValidator | ( | const Graph & | graph | ) |
Definition at line 34 of file OperationValidator.cc.
void onert::ir::OperationValidator::operator() | ( | ) |
Definition at line 39 of file OperationValidator.cc.
References onert::ir::IOperation::accept(), and onert::util::ObjectManager< Index, Object >::iterate().
|
override |
Definition at line 89 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), OP_REQUIRES, onert::ir::OperandIndexSequence::size(), and size.
|
override |
Definition at line 102 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::ArgMinMax::AXIS, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ArgMinMax::INPUT, OP_REQUIRES, onert::ir::operation::ArgMinMax::Param::output_type, and onert::ir::operation::ArgMinMax::param().
|
override |
Definition at line 116 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::BatchMatMul::LHS, OP_REQUIRES, and onert::ir::operation::BatchMatMul::RHS.
|
override |
Definition at line 134 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::BatchToSpaceND::INPUT, and OP_REQUIRES.
|
override |
Definition at line 142 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::BinaryArithmetic::LHS, OP_REQUIRES, and onert::ir::operation::BinaryArithmetic::RHS.
|
override |
Definition at line 152 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::Comparison::INPUT0, onert::ir::operation::Comparison::INPUT1, and OP_REQUIRES.
|
override |
Definition at line 163 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), and OP_REQUIRES.
|
override |
Definition at line 179 of file OperationValidator.cc.
References onert::util::ObjectManager< Index, Object >::at(), onert::ir::OperandIndexSequence::at(), onert::ir::operation::Conv2D::Param::dilation, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::Dilation::height_factor, onert::ir::Stride::horizontal, onert::ir::operation::Conv2D::INPUT, onert::ir::operation::Conv2D::KERNEL, OP_REQUIRES, onert::ir::operation::Conv2D::param(), onert::ir::operation::Conv2D::Param::stride, onert::ir::Stride::vertical, and onert::ir::Dilation::width_factor.
|
override |
Definition at line 201 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::DepthToSpace::Param::block_size, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::DepthToSpace::INPUT, OP_REQUIRES, and onert::ir::operation::DepthToSpace::param().
|
override |
Definition at line 223 of file OperationValidator.cc.
References onert::util::ObjectManager< Index, Object >::at(), onert::ir::OperandIndexSequence::at(), onert::ir::operation::DepthwiseConv2D::Param::dilation, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::Dilation::height_factor, onert::ir::Stride::horizontal, onert::ir::operation::DepthwiseConv2D::INPUT, onert::ir::operation::DepthwiseConv2D::KERNEL, OP_REQUIRES, onert::ir::operation::DepthwiseConv2D::param(), onert::ir::operation::DepthwiseConv2D::Param::stride, onert::ir::Stride::vertical, and onert::ir::Dilation::width_factor.
|
override |
Definition at line 215 of file OperationValidator.cc.
References OP_REQUIRES, and onert::ir::operation::DetectionPostProcess::param().
|
override |
Definition at line 245 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::ElementwiseActivation::ELU, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ElementwiseActivation::LEAKY_RELU, onert::ir::operation::ElementwiseActivation::LOGISTIC, OP_REQUIRES, onert::ir::operation::ElementwiseActivation::Param::op_type, onert::ir::operation::ElementwiseActivation::param(), onert::ir::operation::ElementwiseActivation::RELU, and onert::ir::operation::ElementwiseActivation::TANH.
|
override |
Definition at line 280 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ElementwiseBinary::LHS, onert::ir::operation::ElementwiseBinary::LOGICAL_AND, onert::ir::operation::ElementwiseBinary::LOGICAL_OR, OP_REQUIRES, onert::ir::operation::ElementwiseBinary::Param::op_type, onert::ir::operation::ElementwiseBinary::param(), and onert::ir::operation::ElementwiseBinary::RHS.
|
override |
Definition at line 297 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::ElementwiseUnary::CAST, onert::ir::operation::ElementwiseUnary::DEQUANTIZE, onert::ir::operation::ElementwiseUnary::FLOOR, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ElementwiseUnary::INPUT, OP_REQUIRES, onert::ir::operation::ElementwiseUnary::Param::op_type, onert::ir::operation::ElementwiseUnary::param(), and onert::ir::operation::ElementwiseUnary::QUANTIZE.
|
override |
Definition at line 328 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::EmbeddingLookup::LOOKUPS, OP_REQUIRES, and onert::ir::operation::EmbeddingLookup::VALUES.
|
override |
Definition at line 344 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::ExpandDims::AXIS, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::ExpandDims::INPUT, and OP_REQUIRES.
|
override |
Definition at line 354 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), OP_REQUIRES, onert::ir::operation::Fill::SHAPE, and onert::ir::operation::Fill::VALUE.
|
override |
Definition at line 366 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::Gather::INDICES, onert::ir::operation::Gather::INPUT, and OP_REQUIRES.
|
override |
Definition at line 381 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::HashtableLookup::HITS, onert::ir::operation::HashtableLookup::KEYS, onert::ir::operation::HashtableLookup::LOOKUPS, and OP_REQUIRES.
|
override |
Definition at line 392 of file OperationValidator.cc.
References onert::ir::Operation::getInputs(), onert::ir::operation::Pack::Param::num, OP_REQUIRES, onert::ir::operation::Pack::param(), and onert::ir::OperandIndexSequence::size().
|
override |
Definition at line 399 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::Pad::INPUT, OP_REQUIRES, onert::ir::operation::Pad::PAD, onert::ir::OperandIndexSequence::size(), and onert::ir::operation::Pad::VALUE.
|
override |
Definition at line 429 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getOutputs(), and OP_REQUIRES.
|
override |
Definition at line 436 of file OperationValidator.cc.
References onert::ir::operation::ResizeBilinear::Param::align_corners, onert::ir::operation::ResizeBilinear::Param::half_pixel_centers, OP_REQUIRES, and onert::ir::operation::ResizeBilinear::param().
|
override |
Definition at line 444 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::Reverse::AXIS, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::Reverse::INPUT, and OP_REQUIRES.
|
override |
Definition at line 454 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::RoPE::COS_TABLE, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::RoPE::INPUT, OP_REQUIRES, onert::ir::operation::RoPE::OUTPUT, and onert::ir::operation::RoPE::SIN_TABLE.
|
override |
Definition at line 467 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::Select::CONDITION, onert::ir::Operation::getInputs(), onert::ir::operation::Select::INPUT_FALSE, onert::ir::operation::Select::INPUT_TRUE, and OP_REQUIRES.
|
override |
Definition at line 477 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getOutputs(), and OP_REQUIRES.
|
override |
Definition at line 484 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::Slice::BEGINS, onert::ir::Operation::getInputs(), OP_REQUIRES, and onert::ir::operation::Slice::SIZES.
|
override |
Definition at line 493 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::Softmax::INPUT, and OP_REQUIRES.
|
override |
Definition at line 503 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::operation::SpaceToBatchND::BLOCK_SIZE, onert::ir::Operation::getInputs(), OP_REQUIRES, and onert::ir::operation::SpaceToBatchND::PADDINGS.
|
override |
Definition at line 513 of file OperationValidator.cc.
References onert::ir::operation::SpaceToDepth::Param::block_size, OP_REQUIRES, and onert::ir::operation::SpaceToDepth::param().
|
override |
Definition at line 519 of file OperationValidator.cc.
References onert::ir::Operation::getOutputs(), onert::ir::operation::Split::Param::num_splits, OP_REQUIRES, onert::ir::operation::Split::param(), and onert::ir::OperandIndexSequence::size().
|
override |
Definition at line 527 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::SquaredDifference::LHS, OP_REQUIRES, and onert::ir::operation::SquaredDifference::RHS.
|
override |
Definition at line 537 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), OP_REQUIRES, onert::ir::operation::StatelessRandomUniform::SEED, and onert::ir::operation::StatelessRandomUniform::SHAPE.
|
override |
Definition at line 548 of file OperationValidator.cc.
References onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::StridedSlice::INPUT, and OP_REQUIRES.
|
override |
Definition at line 556 of file OperationValidator.cc.
References OP_REQUIRES, onert::ir::operation::TransposeConv::Param::padding, onert::ir::operation::TransposeConv::param(), onert::ir::SAME, onert::ir::Padding::type, and onert::ir::VALID.
|
override |
Definition at line 562 of file OperationValidator.cc.
References onert::ir::Operation::getOutputs(), onert::ir::operation::Unpack::Param::num, OP_REQUIRES, onert::ir::operation::Unpack::param(), and onert::ir::OperandIndexSequence::size().
|
override |
Definition at line 568 of file OperationValidator.cc.
References onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), OP_REQUIRES, and onert::ir::OperandIndexSequence::size().