ONE - On-device Neural Engine
|
Create a value from user data. More...
#include <Nodes.h>
Public Member Functions | |
Pull ()=default | |
void | index (const GraphInputIndex &index) |
GraphInputIndex | index (void) const |
Get associated input index. | |
bool | indexed (void) const |
Check whether index is initialized. | |
void | dtype (const DataType &d) |
DataType | dtype (void) const |
Public Member Functions inherited from loco::CanonicalNodeDef< CanonicalOpcode::Pull, FixedArity< 0 >::Mixin, With< NodeTrait::TensorShape >::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 |
void loco::Pull::dtype | ( | const DataType & | d | ) |
Definition at line 129 of file Nodes.cpp.
References loco::ObjectPool< T >::at(), loco::Mixin< Trait::DataTyped >::dtype(), dtype(), loco::Node::graph(), indexed(), and loco::Graph::inputs().
DataType loco::Pull::dtype | ( | void | ) | const |
Definition at line 147 of file Nodes.cpp.
References loco::ObjectPool< T >::at(), loco::Mixin< Trait::DataTyped >::dtype(), loco::Node::graph(), and loco::Graph::inputs().
void loco::Pull::index | ( | const GraphInputIndex & | index | ) |
Definition at line 90 of file Nodes.cpp.
References loco::ObjectPool< T >::at(), loco::Mixin< Trait::DataTyped >::dtype(), dtype(), loco::Node::graph(), index(), indexed(), and loco::Graph::inputs().
Referenced by GraphTestcase< GraphCode::AvgPool2D >::GraphTestcase(), GraphTestcase< GraphCode::MaxPool2D >::GraphTestcase(), GraphTestcase< GraphCode::TensorConcat >::GraphTestcase(), GraphTestcase< GraphCode::TensorTranspose >::GraphTestcase(), loco::link(), and InputLayer::operator()().
GraphInputIndex loco::Pull::index | ( | void | ) | const |
Get associated input index.
The behavior of this method is undefined when "index" is not set before.
NOTE This method intentionally returns "GraphInputIndex" instead of "const GraphInputIndex &" not to expose the internal implementation details.
Definition at line 122 of file Nodes.cpp.
Referenced by index().
|
inline |