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

Convert TFRelu6 to Canonical ReLU6. More...

#include <Relu6Canonicalizer.h>

Collaboration diagram for moco::tf::Relu6Canonicalizer:

Public Member Functions

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

Definition at line 35 of file Relu6Canonicalizer.h.

Member Function Documentation

◆ name()

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

Reimplemented from logo::Pass.

Definition at line 38 of file Relu6Canonicalizer.h.

38{ return "Relu6Canonicalizer"; }

◆ transform()

bool moco::tf::Relu6Canonicalizer::transform ( moco::TFRelu6 node) const
finalvirtual

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

Definition at line 62 of file Relu6Canonicalizer.cpp.

63{
64 return canonicalize_relu6(node->graph(), node);
65}
Graph * graph(void)
Definition Node.h:70

References loco::Node::graph().


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