Solved by JuanFMontesinos in post #2 
              
              
                You cannot really do that automatically. 
If you want new size you would need to match previous weights to new ones. Typicall approaches are attention methods in which you have an overparametrized network and you are interested in few of the parameters. Perhaps something with a window computation (l…