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

Convert TFSub to Canonical EltwiseSub. More...

#include <SubCanonicalizer.h>

Collaboration diagram for moco::tf::SubCanonicalizer:

Public Member Functions

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

Definition at line 35 of file SubCanonicalizer.h.

Member Function Documentation

◆ name()

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

Reimplemented from logo::Pass.

Definition at line 38 of file SubCanonicalizer.h.

38{ return "SubCanonicalizer"; }

◆ transform()

bool moco::tf::SubCanonicalizer::transform ( moco::TFSub node) const
finalvirtual

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

Definition at line 28 of file SubCanonicalizer.cpp.

29{
30 return canonicalize_eltwise_binary_node(node);
31}

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