I found model.named_parameters() will lose the keys and params in my model, but model.state_dict() can not, how to fix this?
I want to use this method 175 to group the parameters according to its name.
Thanks.
for name, param in model.named_parameters():
    print name

for k, v in model.state_dict().items():
    print k
    print type(v)