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

#include <GraphBuilder.h>

Data Structures

class  Return
 

Public Member Functions

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

Detailed Description

Definition at line 481 of file GraphBuilder.h.

Member Function Documentation

◆ operator()()

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

Definition at line 505 of file GraphBuilder.h.

506 {
507 auto reshape_node = ctx->graph()->nodes()->create<loco::FixedReshape>();
508
509 reshape_node->input(ctx->stack()->pop());
510
511 ctx->stack()->push(reshape_node);
512
513 return std::make_unique<Return>(reshape_node);
514 }
loco::Graph * graph(void)
Stack * stack(void)
void push(loco::Node *node)
loco::Node * pop(void)
NodeContext * nodes(void)
Definition Graph.h:218
Derived * create(Args &&...args)
Definition NodePool.h:37
Reshape a tensor to another tensor whose shape is known at compile time.
Definition Nodes.h:517

References loco::NodePool::create(), GraphBuilder::Context::graph(), loco::Reshape< ReshapeType::Fixed >::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: