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

Convert TFConst to Canonical ConstGen. More...

#include <ConstCanonicalizer.h>

Collaboration diagram for moco::tf::ConstCanonicalizer:

Public Member Functions

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

Definition at line 35 of file ConstCanonicalizer.h.

Member Function Documentation

◆ name()

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

Reimplemented from logo::Pass.

Definition at line 38 of file ConstCanonicalizer.h.

38{ return "ConstCanonicalizer"; }

◆ transform()

bool moco::tf::ConstCanonicalizer::transform ( moco::TFConst node) const
finalvirtual

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

Definition at line 121 of file ConstCanonicalizer.cpp.

122{
123 return canonicalize_const(node->graph(), node);
124}
Graph * graph(void)
Definition Node.h:70

References loco::Node::graph().


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