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…
body1=nn.Sequential(*list(md_ef.children())[:-1])
Sequential(
(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(