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

#include <GraphBuilder.h>

Data Structures

class  Return
 

Public Member Functions

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

Detailed Description

Definition at line 307 of file GraphBuilder.h.

Member Function Documentation

◆ operator()()

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

Definition at line 332 of file GraphBuilder.h.

333 {
334 using namespace loco;
335
336 auto decode_node = ctx->graph()->nodes()->create<FeatureDecode>();
337
338 decode_node->input(ctx->stack()->pop());
339
340 ctx->stack()->push(decode_node);
341
342 return std::make_unique<Return>(decode_node);
343 }
loco::Graph * graph(void)
Stack * stack(void)
void push(loco::Node *node)
loco::Node * pop(void)
Create a tensor from a feature map.
Definition Nodes.h:399
Node * input(void) const
Definition Nodes.h:401
NodeContext * nodes(void)
Definition Graph.h:218
Derived * create(Args &&...args)
Definition NodePool.h:37

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


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