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

Convert TFAdd to Canonical EltwiseAdd. More...

#include <AddCanonicalizer.h>

Collaboration diagram for moco::tf::AddCanonicalizer:

Public Member Functions

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

Definition at line 35 of file AddCanonicalizer.h.

Member Function Documentation

◆ name()

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

Reimplemented from logo::Pass.

Definition at line 38 of file AddCanonicalizer.h.

38{ return "AddCanonicalizer"; }

◆ transform()

bool moco::tf::AddCanonicalizer::transform ( TFAdd node) const
finalvirtual

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

Definition at line 29 of file AddCanonicalizer.cpp.

30{
31 return canonicalize_eltwise_binary_node(node);
32}

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