Skip to content

Add MetaOperator::updateOutputsWithMicroGraph method.

Cyril Moineau requested to merge MetaOperatorUpdateOutputsWithMicroGraph into dev

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 add MetaOperator_Op::updateMicroGraph, mGraph change from std::shared_ptr<GraphView> -> std::shared_ptr<const GraphView>;
  • pybind_MetaOperatorDefs.cpp add binding for MetaOperator_Op::updateMicroGraph
  • StaticAnalysis now hold a reference to a const GraphView
  • Scheduler now hold a reference to a const GraphView
Edited by Cyril Moineau

Merge request reports

Loading