This will remove reset input for old replaced Conv2D node in Canonicalization and update the diagram
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* B -/
*
* After
- * - TFConv2D -
+ * A -- TFConv2D -
+ * B -/
* A -- FeatureEncode - Conv2D - FeatureDecode - C
* B -- FilterEncode -/
*
* B : ker of TFConv2D
* C : a node that uses TFConv2D as an input
* TFConv2D is disconnected from other nodes
+ * A and B are drawn twice to simplify the diagram
*/
auto data_layout = plier::tf::as_data_layout(node->data_layout());
conv2d->ker(filter_enc);
feature_dec->input(conv2d);
- // replace and disconnect old node
+ // replace old node
replace(node).with(feature_dec);
- node->ifm(nullptr);
- node->ker(nullptr);
return true;
}