ONE - On-device Neural Engine
|
Convert loco::TransposedConv2D to locoex::TFLTransposeConv and auxiliary. More...
#include <TransposedConv2DConverter.h>
Public Member Functions | |
const char * | name (void) const final |
bool | convert (loco::TransposedConv2D *origin) final |
Public Member Functions inherited from exo::CanonicalNodeConverter< loco::TransposedConv2D > | |
bool | run (loco::Graph *graph) |
Run the pass. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Additional Inherited Members |
Convert loco::TransposedConv2D to locoex::TFLTransposeConv and auxiliary.
<BEFORE>
IFM ----— TransposedConv2D — OFM (Feature) / (Feature) / KER ---— (Filter)
<AFTER>
out_backprop : IFM ----— FeatureDecode — TFLTransposeConv — FeatureEncode — OFM [Feature] [Tensor] / / [Tensor] [Feature] / / filter: KER ----— FilterDecode — / [Filter] [Tensor] / / input_sizes : TFLConst (new) ---------— [Tensor]
Definition at line 51 of file TransposedConv2DConverter.h.
|
finalvirtual |
Implements exo::CanonicalNodeConverter< loco::TransposedConv2D >.
Definition at line 29 of file TransposedConv2DConverter.cpp.
References loco::NodeShape::as(), locoex::TFLConst::at(), loco::Node::graph(), loco::Stride< 2 >::horizontal(), loco::TransposedConv2D::ifm(), loco::TransposedConv2D::ker(), exo::make_feature_decode< FeatureLayout::NHWC >(), exo::make_feature_encode< FeatureLayout::NHWC >(), exo::make_filter_decode< FilterLayout::OHWI >(), loco::TransposedConv2D::pad(), loco::replace(), locoex::SAME, loco::shape_get(), loco::shape_known(), locoex::TFLTransposeConv::stride(), loco::TransposedConv2D::stride(), locoex::VALID, loco::Stride< 2 >::vertical(), locoex::Stride::w(), and loco::Subst< SubstQualifier::Default >::with().
|
inlinefinalvirtual |
Reimplemented from exo::CanonicalNodeConverter< loco::TransposedConv2D >.
Definition at line 54 of file TransposedConv2DConverter.h.