So what is the right way to add more than one layers instead of just replacing the existing one? And i also want to keep the original name of each predefined layer.
In init, if I use
feat = nn.Sequential(*list(resnet.children())[:-1])
fc1 = nn.Linear(a, b)
fc1 = nn.Linear(b, c)


the layer names in feat are lost.