Skip to content
Snippets Groups Projects

Implement insertParent function in GraphView

Merged Thibault Allenet requested to merge graphView_insert into main
1 unresolved thread
3 files
+ 74
6
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -320,8 +320,20 @@ public:
@@ -320,8 +320,20 @@ public:
void link(std::string name1_inID, std::string name2_outID);
void link(std::string name1_inID, std::string name2_outID);
void insert(Node &newNode, Node &inNode, std::initializer_list<Node> outNodes,
/**
IOIndex_t tensorIdx);
* @brief Insert a node (newParentNode) as a parent of the passed node (childNode).
 
*
 
* @param childNode Node that gets a new parent.
 
* @param newParentNode Inserted Node.
 
* @param childInputTensorIdx Index of the input Tensor for the childNode linked to the inserted Node output.
 
* @param newParentInputTensorIdx Index of the input Tensor for the newParentNode linked to the former parent of childNode.
 
* @param newParentOutputTensorIdx Index of the output Tensor for the newParentNode linked to the childNode's input Tensor.
 
*/
 
void insertParent(NodePtr childNode,
 
NodePtr newParentNode,
 
IOIndex_t childInputTensorIdx,
 
IOIndex_t newParentInputTensorIdx,
 
IOIndex_t newParentOutputTensorIdx);
/**
/**
* @brief Replace the current GraphView with the set of given Nodes if possible
* @brief Replace the current GraphView with the set of given Nodes if possible
Loading