Code QuizIntermediate

Configuring the Adam Optimizer

Find the mistake when passing model parameters to Adam.

Codepython
import torch

model = torch.nn.Linear(10, 2)
optimizer = torch.optim.Adam(model.parameters, lr=0.001)

What is the bug in this optimizer setup?