ONE - On-device Neural Engine
Loading...
Searching...
No Matches
exo::ReluConverter Class Reference

Convert loco::Relu to TFLRelu. More...

#include <ReluConverter.h>

Collaboration diagram for exo::ReluConverter:

Public Member Functions

const char * name (void) const final
 
bool convert (loco::ReLU *origin) final
 
- Public Member Functions inherited from exo::CanonicalNodeConverter< loco::ReLU >
bool run (loco::Graph *graph)
 Run the pass.
 
- Public Member Functions inherited from logo::Pass
virtual ~Pass ()=default
 

Additional Inherited Members

Detailed Description

Convert loco::Relu to TFLRelu.

Definition at line 30 of file ReluConverter.h.

Member Function Documentation

◆ convert()

bool exo::ReluConverter::convert ( loco::ReLU origin)
finalvirtual

Implements exo::CanonicalNodeConverter< loco::ReLU >.

Definition at line 58 of file ReluConverter.cpp.

59{
60 ReluInputHandler input_handler;
62
63 auto tfl_node = domain_converter.convert<FeatureLayout::NHWC>(origin, input_handler);
64
65 return (tfl_node != nullptr);
66}
Class to handle domain conversion while converting a canonical node to TFL node(s)
Definition GraphBlock.h:135
TFLT * convert(CanonicalT *origin, InputHandler< CanonicalT, TFLT > &input_handler)
Performs domain conversion.
Definition GraphBlock.h:152

References exo::DomainConverter< CanonicalT, TFLT >::convert(), and exo::NHWC.

◆ name()

const char * exo::ReluConverter::name ( void  ) const
inlinefinalvirtual

Reimplemented from exo::CanonicalNodeConverter< loco::ReLU >.

Definition at line 33 of file ReluConverter.h.

33{ return "exo::ReluConverter"; }

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