ONE - On-device Neural Engine
|
#include <FeatureBiasAddConverter.h>
Public Member Functions | |
const char * | name (void) const final |
bool | convert (loco::FeatureBiasAdd *origin) final |
Converts loco::FeatureBiasAdd to locoex::TFLAdd. | |
Public Member Functions inherited from exo::CanonicalNodeConverter< loco::FeatureBiasAdd > | |
bool | run (loco::Graph *graph) |
Run the pass. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Additional Inherited Members |
Definition at line 27 of file FeatureBiasAddConverter.h.
|
finalvirtual |
Converts loco::FeatureBiasAdd to locoex::TFLAdd.
Before: Foo —+ | loco::FeatureBiasAdd - FeatureDecode - ... | Bar - BiasEncode –+
After:
Foo - loco::FeatureDecode --+ loco::FeatureBiasAdd |(x) TFLAdd -- loco::FeatureEncode - FeatureDecode - ... |(y)
Bar - BiasEncode - loco::BiasDecode –+
Implements exo::CanonicalNodeConverter< loco::FeatureBiasAdd >.
Definition at line 59 of file FeatureBiasAddConverter.cpp.
References loco::BiasAdd< Domain::Feature >::bias(), loco::NodeShape::domain(), loco::Feature, loco::Node::graph(), exo::make_feature_decode< FeatureLayout::NHWC >(), exo::make_feature_encode< FeatureLayout::NHWC >(), loco::replace(), loco::shape_get(), loco::BiasAdd< Domain::Feature >::value(), and loco::Subst< SubstQualifier::Default >::with().
|
inlinefinalvirtual |
Reimplemented from exo::CanonicalNodeConverter< loco::FeatureBiasAdd >.
Definition at line 30 of file FeatureBiasAddConverter.h.