thanks, @Sunshine352
my comment is not correct, I remove latest 2 layer include a fc and AvgPool2d layer in my code.
and my question is using nn.Sequential(*list(resnet.children())[:-1]) seens not change the define of network structure, and only change the forward process, and impact the backward process.