This is useful to load an existing trained network for which modules loading order has change because of framework changes.
To rearrange the order of loaded weights, first identify the blocks of weights that need to be permuted by looking at the network construction outputs and using the ”#params” number to indicate the end of each block. Then figure out the new order of these blocks and define the following variables in your configuration file:
weights_blocks = 162,1858,1934 weights_permutation = 1,0,2
In the example above, we are permuting blocks [0, 162], [163, 1858] and [1859, 1934] to [163, 1858], [0, 162] and [1859, 1934].