For example conv layers can be applied to variably sized inputs, with a fixed set of weights.
I didn’t mean to say that you necessarily want to alter the weights, but there have been some papers on having networks approximate parameters of another network (e.g. this one 50), so it could probably be used for that.