Skip to content

GraphView cloning proposal + labelGraph proof of concept

Olivier BICHLER requested to merge clone into main

Sub-task list:

  • Baseline implementation proposal: based on a new clone() GraphView method. The idea is to clone the graph with a callback function for the node cloning, allowing to specify how each node should be cloned, or replaced by an other node type, or removed (i.e. replaced by identity). When a node is removed, the clone() method automatically find the next valid parent in line, going backward in the graph and connect is if that makes sense without ambiguity (effectively treating the removed node as an identity operation).

  • Ability to specify output dims for GenericOp;

  • Unit tests for operator cloning;

  • Unit tests for node cloning;

  • Unit tests for graph cloning;

  • Working PoC for labelGraph: see LabelGraph.cpp.

  • Solve "friend" workaround.

Edited by Olivier BICHLER

Merge request reports