OH,I find the result. Actrually, in the code
for name, module in self.named_modules():

only in first time, name return ‘’ and module return the whole model. But in next iteration, the name return model’s layer name and module is the layer. Maybe it’s a special result in pytoch.