ONE - On-device Neural Engine
|
#include <CircleNodeDecl.h>
Public Member Functions | |
virtual | ~CircleNode ()=default |
const loco::Dialect * | dialect (void) const final |
Return "Dialect" identifier that this node belongs to. | |
virtual CircleOpcode | opcode (void) const =0 |
template<typename T > | |
T | accept (CircleNodeVisitorBase< T > *) const |
template<typename T > | |
T | accept (CircleNodeMutableVisitorBase< 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 29 of file CircleNodeDecl.h.
|
virtualdefault |
T locoex::CircleNode::accept | ( | CircleNodeMutableVisitorBase< T > * | v | ) |
Definition at line 48 of file CircleNodeImpl.h.
References INTERNAL_EXN, and opcode().
T locoex::CircleNode::accept | ( | CircleNodeVisitorBase< T > * | v | ) | const |
Definition at line 29 of file CircleNodeImpl.h.
References INTERNAL_EXN, and opcode().
|
finalvirtual |
Return "Dialect" identifier that this node belongs to.
dialect() SHOULD return a valid pointer.
Implements loco::Node.
Definition at line 24 of file CircleNode.cpp.
References locoex::CircleDialect::get().
|
pure virtual |
Implemented in locoex::CircleNodeImpl< Code >, and locoex::CircleNodeImpl< CircleOpcode::INSTANCE_NORM >.