ONE - On-device Neural Engine
|
Class to resolve custom op MaxPoolWithArgmax to subgraph with circle's MaxPool and ArgMax. More...
#include <ResolveCustomOpMaxPoolWithArgmaxPass.h>
Public Member Functions | |
const char * | name (void) const final |
bool | run (loco::Graph *g) final |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Class to resolve custom op MaxPoolWithArgmax to subgraph with circle's MaxPool and ArgMax.
Definition at line 28 of file ResolveCustomOpMaxPoolWithArgmaxPass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 30 of file ResolveCustomOpMaxPoolWithArgmaxPass.h.
|
finalvirtual |
BEFORE | [CircleNode] | [CUSTOM(MaxPoolWithArgmax)] | | [MaxPool output] [Argmax output]
AFTER | [CircleNode] / \ [Split over channels] [MaxPool2D] / | \ \ [Requantize] ... ... [MaxPool output] | [PadV2] | [Conv2D] | [ArgMax] | [Reshape to 4d] | [Cast to float32] / | | [Mul 1/<window width>] | \ | [Floor] | | | [DepthwiseConv2D for requantize] | / \ | [Mul window width] | \ / / \ [Neg] [Mul input width] \ / / [Add] / \ / [Add] | [Add const] | [Mul number of channels] \ [Optional Add with channels id] ... ... \ | / [Concatenation] | [Cast to int] | [Argmax output]
Implements logo::Pass.
Definition at line 884 of file ResolveCustomOpMaxPoolWithArgmaxPass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().