|
ONE - On-device Neural Engine
|
Make a value visible to user. More...
#include <Nodes.h>

Public Member Functions | |
| Push ()=default | |
| Node * | from (void) const |
| void | from (Node *node) |
| void | index (const GraphOutputIndex &index) |
| GraphOutputIndex | index (void) const |
| Get associated output index. | |
| bool | indexed (void) const |
| Check whether index is initialized. | |
Public Member Functions inherited from loco::CanonicalNodeDef< CanonicalOpcode::Push, FixedArity< 1 >::Mixin > | |
| virtual | ~CanonicalNodeDef ()=default |
| uint32_t | opnum (void) const final |
| CanonicalOpcode | opcode (void) const final |
Public Member Functions inherited from loco::CanonicalNode | |
| virtual | ~CanonicalNode ()=default |
| const Dialect * | dialect (void) const final |
| Return "Dialect" identifier that this node belongs to. | |
| 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 | 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. | |
|
default |
Definition at line 58 of file Nodes.h.
Referenced by exo::test::TestGraph::complete(), exo::test::TestGraph::complete(), GraphTestcase< GraphCode::AvgPool2D >::GraphTestcase(), GraphTestcase< GraphCode::MaxPool2D >::GraphTestcase(), GraphTestcase< GraphCode::TensorConcat >::GraphTestcase(), GraphTestcase< GraphCode::TensorTranspose >::GraphTestcase(), OutputLayer::operator()(), and mir2loco::Transformer::visit().
| void loco::Push::index | ( | const GraphOutputIndex & | index | ) |
Definition at line 52 of file Nodes.cpp.
References index(), and loco::must_cast().
Referenced by onert.experimental.train.dataloader.DataLoader::__next__(), GraphTestcase< GraphCode::AvgPool2D >::GraphTestcase(), GraphTestcase< GraphCode::MaxPool2D >::GraphTestcase(), GraphTestcase< GraphCode::TensorConcat >::GraphTestcase(), GraphTestcase< GraphCode::TensorTranspose >::GraphTestcase(), loco::link(), and OutputLayer::operator()().
| GraphOutputIndex loco::Push::index | ( | void | ) | const |
Get associated output index.
The behavior of this method is undefined when "index" is not set before.
NOTE This method intentionally returns "GraphOutputIndex" instead of "const GraphOutputIndex &" not to expose the internal implementation details.
Definition at line 58 of file Nodes.cpp.
Referenced by onert.experimental.train.dataloader.DataLoader::__next__(), and index().