ONE - On-device Neural Engine
Loading...
Searching...
No Matches
ConstGenLayer Struct Referencefinal

#include <GraphBuilder.h>

Data Structures

class  Return
 

Public Member Functions

std::unique_ptr< Returnoperator() (GraphBuilder::Context *ctx)
 

Detailed Description

Definition at line 241 of file GraphBuilder.h.

Member Function Documentation

◆ operator()()

std::unique_ptr< Return > ConstGenLayer::operator() ( GraphBuilder::Context ctx)
inline

Definition at line 258 of file GraphBuilder.h.

259 {
260 auto const_node = ctx->graph()->nodes()->create<loco::ConstGen>();
261
262 ctx->stack()->push(const_node);
263
264 return std::make_unique<Return>(const_node);
265 }
loco::Graph * graph(void)
Stack * stack(void)
void push(loco::Node *node)
Create a value from constant byte array.
Definition Nodes.h:218
NodeContext * nodes(void)
Definition Graph.h:218
Derived * create(Args &&...args)
Definition NodePool.h:37

References loco::NodePool::create(), GraphBuilder::Context::graph(), loco::Graph::nodes(), GraphBuilder::Stack::push(), and GraphBuilder::Context::stack().


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