I thought that was your use case, i.e. saving a model with certain layer names and load these parameters in another model using other layer names.
Would that work for you? Alternatively, one could probably manipulate the layers using getattr and setattr, but I’m not a huge fan of it, since it might break other stuff (e.g. hooks), although I’m not sure about it.