Yes, in PyTorch the name is a property of the container, not the contained layer, so if the same layer A
is part of two other layers B and C, that same layer A could have two different names in layers B and C.
This is not very helpful, I think, and I would agree that allowing layers to have identifying names which are part of the layer would be very useful.