the fx api has methods for inserting nodes, it is flexible enough so that the node I insert can be a fully featured model with several layers, however I am facing a problem in which I need to insert each nodes from the submodel instead of the submodel as one node and I am not sure how to achieve that.
The context is that I am writing a backbone replacer, it automatically detects backbones and can replace them. It is fine to just remove all nodes from the old backbone and insert the new backbone as a single node in most cases, but in some cases there are skip connections between the backbone and the head and I would like to be able to handle that case. That means I need to insert the replacing backbone layer by layer so I can remap the previous skip connections to layers of the replacing backbone.
I hope that made sense!
Thank you in advance.