ONE - On-device Neural Engine
|
This pass removes operations without uses. Importers currently only generate sConstantOp
s without uses.
More...
#include <DeadCodeElimination.h>
Public Member Functions | |
PassData | run (PassData data) override |
run compiler pass | |
std::string | getName () override |
Public Member Functions inherited from nnc::Pass | |
virtual void | cleanup () |
clean compiler pass data | |
virtual | ~Pass ()=default |
This pass removes operations without uses. Importers currently only generate sConstantOp
s without uses.
Definition at line 30 of file DeadCodeElimination.h.
|
inlineoverridevirtual |
Reimplemented from nnc::Pass.
Definition at line 35 of file DeadCodeElimination.h.
|
overridevirtual |
run compiler pass
data | - data that pass is taken |
PassException | object if errors occured |
Implements nnc::Pass.
Definition at line 24 of file DeadCodeElimination.cpp.
References mir::getSortedNodes().
Referenced by package.infer.session::inference().