Hi,
Thank you very much. Does the pretrained model has this functionality?
	model = models.resnet18(pretrained=True)

	num_ftrs = model.fc.in_features
	model.fc = nn.Linear(num_ftrs, 2)
	model = model.cuda()

	weights, biases = [], []
	for name, p in model.named_parameters():
		if 'bias' in name:
			biases += [p]
		else:
			weights += [p]

This will gives me a bug:
AttributeError: 'ResNet' object has no attribute 'named_paramenters'