ONE - On-device Neural Engine
Loading...
Searching...
No Matches
InputLayer::Return Class Reference

#include <GraphBuilder.h>

Public Member Functions

 Return (loco::GraphInput *input, loco::Pull *node)
 
loco::Pullnode (void)
 
Returnname (const std::string &value)
 
Returnshape (std::initializer_list< uint32_t > dims)
 

Detailed Description

Definition at line 115 of file GraphBuilder.h.

Constructor & Destructor Documentation

◆ Return()

InputLayer::Return::Return ( loco::GraphInput input,
loco::Pull node 
)
inline

Definition at line 118 of file GraphBuilder.h.

118 : _input{input}, _node{node}
119 {
120 // DO NOTHING
121 }
loco::Pull * node(void)

Member Function Documentation

◆ name()

Return * InputLayer::Return::name ( const std::string &  value)
inline

Definition at line 127 of file GraphBuilder.h.

128 {
129 _input->name(value);
130 return this;
131 }

◆ node()

loco::Pull * InputLayer::Return::node ( void  )
inline

Definition at line 124 of file GraphBuilder.h.

124{ return _node; }

◆ shape()

Return * InputLayer::Return::shape ( std::initializer_list< uint32_t >  dims)
inline

Definition at line 134 of file GraphBuilder.h.

135 {
136 // TODO Uncomment this line when GraphInput is ready
137 // _graph_input->shape(dims)
138 _node->shape(dims);
139 return this;
140 }

Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), and RandomDataGenerator.RandomDataGenerator::_gen_uint8().


The documentation for this class was generated from the following file: