ONE - On-device Neural Engine
|
#include <CanonicalNodeDecl.h>
Public Member Functions | |
virtual | ~CanonicalNode ()=default |
const Dialect * | dialect (void) const final |
Return "Dialect" identifier that this node belongs to. | |
virtual CanonicalOpcode | opcode (void) const =0 |
template<typename T > | |
T | accept (CanonicalNodeVisitorBase< T > *) const |
template<typename T > | |
T | accept (CanonicalNodeMutableVisitorBase< T > *) |
Public Member Functions inherited from loco::Node | |
Node ()=default | |
Node (const Node &)=delete | |
Node (Node &&)=delete | |
virtual | ~Node () |
Graph * | graph (void) |
const Graph * | graph (void) const |
virtual uint32_t | opnum (void) const =0 |
virtual uint32_t | arity (void) const =0 |
Return the number of arguments. | |
virtual Node * | arg (uint32_t N) const =0 |
Access N-th argument node. | |
virtual void | drop (void)=0 |
Drop all the reference of arguments. | |
Public Member Functions inherited from loco::AnnotatedItem< NodeAnnotation > | |
AnnotatedItem ()=default | |
virtual | ~AnnotatedItem ()=default |
const T * | annot (void) const |
Retrieve a stored annotation of type T. | |
void | annot (std::unique_ptr< T > &&p) |
Attach or remove a new annotation of type T. | |
Definition at line 28 of file CanonicalNodeDecl.h.
|
virtualdefault |
T loco::CanonicalNode::accept | ( | CanonicalNodeMutableVisitorBase< T > * | v | ) |
Definition at line 45 of file CanonicalNodeImpl.h.
References opcode().
T loco::CanonicalNode::accept | ( | CanonicalNodeVisitorBase< T > * | v | ) | const |
Definition at line 28 of file CanonicalNodeImpl.h.
References opcode().
|
finalvirtual |
Return "Dialect" identifier that this node belongs to.
dialect() SHOULD return a valid pointer.
Implements loco::Node.
Definition at line 23 of file CanonicalNode.cpp.
References loco::CanonicalDialect::get().
|
pure virtual |
Implemented in loco::CanonicalNodeDef< Code, Mixins >, loco::CanonicalNodeDef< CanonicalOpcode::AvgPool2D, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::BiasDecode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::BiasEncode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::ConstGen, FixedArity< 0 >::Mixin, With< NodeTrait::DataType >::Mixin, With< NodeTrait::TensorShape >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::Conv2D, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::DepthwiseConv2D, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::DepthwiseFilterDecode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::DepthwiseFilterEncode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::EltwiseAdd, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::EltwiseDiv, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::EltwiseMax, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::EltwiseMul, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::EltwiseSqrt, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::EltwiseSub, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::FeatureBiasAdd, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::FeatureDecode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::FeatureEncode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::FilterDecode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::FilterEncode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::FixedReshape, FixedArity< 1 >::Mixin, With< NodeTrait::TensorShape >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::Forward, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::MatMul, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::MatrixDecode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::MatrixEncode, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::MaxPool2D, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::Pull, FixedArity< 0 >::Mixin, With< NodeTrait::TensorShape >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::Push, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::ReLU, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::ReLU6, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::Tanh, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorBiasAdd, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorBroadcast, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorConcat, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorConstantPad, FixedArity< 2 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorReduce, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorSoftmax, FixedArity< 1 >::Mixin >, loco::CanonicalNodeDef< CanonicalOpcode::TensorTranspose, FixedArity< 1 >::Mixin >, and loco::CanonicalNodeDef< CanonicalOpcode::TransposedConv2D, FixedArity< 2 >::Mixin >.