ONE - On-device Neural Engine
|
Class to fuse batch normalization of pre-activation. More...
#include <FusePreActivationBatchNormPass.h>
Public Member Functions | |
const char * | name (void) const final |
bool | run (loco::Graph *g) final |
Run the pass. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Data Fields | |
std::vector< luci::CircleMul * > | _mul_list |
std::vector< luci::CircleAdd * > | _add_list |
std::vector< luci::CircleSub * > | _sub_list |
Class to fuse batch normalization of pre-activation.
Definition at line 29 of file FusePreActivationBatchNormPass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 31 of file FusePreActivationBatchNormPass.h.
|
finalvirtual |
Run the pass.
Implements logo::Pass.
Definition at line 577 of file FusePreActivationBatchNormPass.cpp.
References _add_list, _mul_list, _sub_list, loco::active_nodes(), luci::fuse_add_with_conv(), luci::fuse_mul_with_conv(), luci::fuse_sub_with_conv(), INFO, LOGGER, loco::output_nodes(), and luci::swap_mul_add().
Referenced by package.infer.session::inference().
std::vector<luci::CircleAdd *> luci::FusePreActivationBatchNormPass::_add_list |
Definition at line 36 of file FusePreActivationBatchNormPass.h.
Referenced by run().
std::vector<luci::CircleMul *> luci::FusePreActivationBatchNormPass::_mul_list |
Definition at line 35 of file FusePreActivationBatchNormPass.h.
Referenced by run().
std::vector<luci::CircleSub *> luci::FusePreActivationBatchNormPass::_sub_list |
Definition at line 37 of file FusePreActivationBatchNormPass.h.
Referenced by run().