Sequential results

Hi I two models
One dense net and one Efficient net…

when i do sequential on both
body =nn.Sequential(*list(model.children())[:-1])
in this dict keys are preserved like conv0.,Relu0 etc
but in below dict keys get lost and converted into the 0 ,1,2 why is difference…
(0): Conv2dStaticSamePadding(
3, 48, kernel_size=(3, 3), stride=(2, 2), bias=False
(static_padding): ZeroPad2d(padding=(0, 1, 0, 1), value=0.0)
(1): BatchNorm2d(48, eps=0.001, momentum=0.010000000000000009, affine=True, track_running_stats=True)
(2): ModuleList(

I don’t think that that is actually the case, could it be that the outermost sequential (which is the only bit you are changing) is just short for the first?
You would need to show more of what you are doing to get help, preferably enclosing the code in triple backticks (```).

Best regards