ONE - On-device Neural Engine
Loading...
Searching...
No Matches
moco::tf::AvgPoolCanonicalizer Class Reference

Convert TFAvgPool to Canonical AvgPool2D. More...

#include <AvgPoolCanonicalizer.h>

Collaboration diagram for moco::tf::AvgPoolCanonicalizer:

Public Member Functions

const char * name (void) const final
 
bool transform (TFAvgPool *node) const final
 
- Public Member Functions inherited from moco::tf::SimpleNodeTransform< moco::TFAvgPool >
 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 TFAvgPool to Canonical AvgPool2D.

Definition at line 35 of file AvgPoolCanonicalizer.h.

Member Function Documentation

◆ name()

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

Reimplemented from logo::Pass.

Definition at line 38 of file AvgPoolCanonicalizer.h.

38{ return "AvgPoolCanonicalizer"; }

◆ transform()

bool moco::tf::AvgPoolCanonicalizer::transform ( TFAvgPool node) const
finalvirtual

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

Definition at line 108 of file AvgPoolCanonicalizer.cpp.

109{
110 return canonicalize_avgpool2d(node->graph(), node);
111}

References loco::Node::graph().


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