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

#include <GraphBuilder.h>

Data Structures

class  Return
 

Public Member Functions

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

Detailed Description

Definition at line 517 of file GraphBuilder.h.

Member Function Documentation

◆ operator()()

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

Definition at line 534 of file GraphBuilder.h.

535 {
536 auto broadcast_node = ctx->graph()->nodes()->create<loco::TensorBroadcast>();
537
538 broadcast_node->input(ctx->stack()->pop());
539 ctx->stack()->push(broadcast_node);
540
541 return std::make_unique<Return>(broadcast_node);
542 }
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
Duplicate elements along specified axes.
Definition Nodes.h:980
Node * input(void) const
Definition Nodes.h:985

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