pytorch中children(),modules(),named_children(),named_modules(),named_parameters(),parameters()的区别
children():返回包含直接子模块的迭代器formoduleinmodel.children():print(module)GRU(34,144,num_layers=2,batch_first=True,bidirectional=True)Sequential((0):Linear(in_features=288,out_features=144,bias=True)(1):ReLU()