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

#include <GraphBuilder.h>

Data Structures

class  Return
 

Public Member Functions

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

Detailed Description

Definition at line 384 of file GraphBuilder.h.

Member Function Documentation

◆ operator()()

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

Definition at line 409 of file GraphBuilder.h.

410 {
411 auto encode_node = ctx->graph()->nodes()->create<loco::DepthwiseFilterEncode>();
412
413 encode_node->input(ctx->stack()->pop());
414
415 ctx->stack()->push(encode_node);
416
417 return std::make_unique<Return>(encode_node);
418 }
loco::Graph * graph(void)
Stack * stack(void)
void push(loco::Node *node)
loco::Node * pop(void)
Create a depthwise filter from a tensor.
Definition Nodes.h:456
Node * input(void) const
Definition Nodes.h:458
NodeContext * nodes(void)
Definition Graph.h:218
Derived * create(Args &&...args)
Definition NodePool.h:37

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