ONE - On-device Neural Engine
Loading...
Searching...
No Matches
moco::tf::PadCanonicalizer Class Referencefinal

Convert TFPad to Canonical TensorConstantPad. More...

#include <PadCanonicalizer.h>

Collaboration diagram for moco::tf::PadCanonicalizer:

Public Member Functions

const char * name (void) const final
 
bool transform (moco::TFPad *) const final
 
- Public Member Functions inherited from moco::tf::SimpleNodeTransform< moco::TFPad >
 SimpleNodeTransform ()=default
 
virtual ~SimpleNodeTransform ()=default
 
bool run (loco::Graph *graph) final
 Run the pass.
 
- Public Member Functions inherited from logo::Pass
virtual ~Pass ()=default
 

Detailed Description

Convert TFPad to Canonical TensorConstantPad.

Definition at line 33 of file PadCanonicalizer.h.

Member Function Documentation

◆ name()

const char * moco::tf::PadCanonicalizer::name ( void  ) const
inlinefinalvirtual

Reimplemented from logo::Pass.

Definition at line 36 of file PadCanonicalizer.h.

36{ return "PadCanonicalizer"; }

◆ transform()

bool moco::tf::PadCanonicalizer::transform ( moco::TFPad node) const
finalvirtual

Implements moco::tf::SimpleNodeTransform< moco::TFPad >.

Definition at line 92 of file PadCanonicalizer.cpp.

93{
94 return canonicalize_pad(node->graph(), node);
95}
Graph * graph(void)
Definition Node.h:70

References loco::Node::graph().


The documentation for this class was generated from the following files: