ONE - On-device Neural Engine
|
#include <FuseHorizontalFullyConnectedPass.h>
Public Member Functions | |
const char * | name (void) const final |
bool | run (loco::Graph *g) final |
Class to fuse horizontal FC layers. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Definition at line 25 of file FuseHorizontalFullyConnectedPass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 27 of file FuseHorizontalFullyConnectedPass.h.
|
finalvirtual |
Class to fuse horizontal FC layers.
Before
+-— [In] -—+ | | V V fc1 (w1, b1) fc2 (w2, b2) | | | | +—> add <-—+ | V [Out]
After
[In] | V fc3 (w1+w2, b1+b2) | V [Out]
Shape/dtype of fc1, fc2, and fc3 should be the same.
Implements logo::Pass.
Definition at line 202 of file FuseHorizontalFullyConnectedPass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().