exception NetworkCopyUtils.LayerDoNotMatchForCopy[source]
NetworkCopyUtils.intelli_copy_layer(old_layer, new_layer)[source]

Copies from old_layer to new_layer.

We support slightly different param names. That can happen because the param names could encode the source/target layer number, e.g. named “hidden_N”. Thus we need to translate the parameter names for the new network.

For the translation, we expect that a sorted list of the old output source layer names matches the related list of new output source layer names.