Add MetaOperator::updateOutputsWithMicroGraph method.
Context
MetaOperator embed a GraphView and manage a list of output Tensor. If one update the micro-graph, this list is not updated. This MR propose to add MetaOperator_Op::updateMicroGraph
that will update the micro graph and the list of output tensors. Furthermore, this MR will change the reference to the GraphView held by the MetaOperator_Op to be a const GraphView. Forcing user to use a function updateMicroGraph
to apply modifications to the GraphView
Modified files
-
MetaOperator.hpp
&MetaOperator.cpp
addMetaOperator_Op::updateMicroGraph
, mGraph change fromstd::shared_ptr<GraphView>
->std::shared_ptr<const GraphView>
; -
pybind_MetaOperatorDefs.cpp
add binding forMetaOperator_Op::updateMicroGraph
- StaticAnalysis now hold a reference to a const GraphView
- Scheduler now hold a reference to a const GraphView
Edited by Cyril Moineau