ONE - On-device Neural Engine
|
A pass to eliminate unused operands from the graph. More...
#include <UnusedOperandEliminationPass.h>
Public Member Functions | |
std::string | id () override |
void | run () final |
Pass (ir::Graph &graph) | |
Public Member Functions inherited from onert::compiler::pass::Pass | |
Pass (ir::Graph &graph) | |
virtual | ~Pass ()=default |
Public Member Functions inherited from onert::compiler::pass::IPass | |
virtual | ~IPass ()=default |
Additional Inherited Members | |
Protected Attributes inherited from onert::compiler::pass::Pass | |
ir::Graph & | _graph |
A pass to eliminate unused operands from the graph.
Remove operands that are not used by any operations, except Graph inputs/outputs.
Definition at line 40 of file UnusedOperandEliminationPass.h.
|
inlineoverridevirtual |
Implements onert::compiler::pass::Pass.
Definition at line 46 of file UnusedOperandEliminationPass.h.
|
finalvirtual |
Implements onert::compiler::pass::Pass.
Definition at line 36 of file UnusedOperandEliminationPass.cc.
References onert::compiler::pass::Pass::_graph, onert::util::Set< Element >::add(), onert::util::Set< Element >::contains(), onert::ir::IOperation::getInputs(), onert::ir::Graph::getInputs(), onert::ir::IOperation::getOutputs(), onert::ir::Graph::getOutputs(), onert::util::ObjectManager< Index, Object >::iterate(), onert::ir::Graph::operands(), onert::ir::Graph::operations(), onert::util::ObjectManager< Index, Object >::remove(), onert::ir::UNDEFINED, and VERBOSE.
Referenced by package.infer.session::inference().