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

Convert TFIdentity to Canonical Forward. More...

#include <IdentityCanonicalizer.h>

Collaboration diagram for moco::tf::IdentityCanonicalizer:

Public Member Functions

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

Definition at line 35 of file IdentityCanonicalizer.h.

Member Function Documentation

◆ name()

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

Reimplemented from logo::Pass.

Definition at line 38 of file IdentityCanonicalizer.h.

38{ return "IdentityCanonicalizer"; }

◆ transform()

bool moco::tf::IdentityCanonicalizer::transform ( moco::TFIdentity node) const
finalvirtual

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

Definition at line 72 of file IdentityCanonicalizer.cpp.

73{
74 return canonicalize_identity(node->graph(), node);
75}
Graph * graph(void)
Definition Node.h:70

References loco::Node::graph().


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