File "C:\Users\Haitham\PycharmProjects\pytorch_project\train.py", line 83, in
optimizer = torch.optim.Adam(model.parameters(), lr=learning_rate)
File "C:\Users\Haitham\PycharmProjects\pytorch_project\venv\lib\site-packages\torch\optim\adam.py", line 33, in init
super().init(params, defaults)
File "C:\Users\Haitham\PycharmProjects\pytorch_project\venv\lib\site-packages\torch\optim\optimizer.py", line 187, in init
raise ValueError("optimizer got an empty parameter list")
ValueError: optimizer got an empty parameter list
File "C:\Users\Haitham\PycharmProjects\pytorch_project\train.py", line 83, in
optimizer = torch.optim.Adam(model.parameters(), lr=learning_rate)
File "C:\Users\Haitham\PycharmProjects\pytorch_project\venv\lib\site-packages\torch\optim\adam.py", line 33, in init
super().init(params, defaults)
File "C:\Users\Haitham\PycharmProjects\pytorch_project\venv\lib\site-packages\torch\optim\optimizer.py", line 187, in init
raise ValueError("optimizer got an empty parameter list")
ValueError: optimizer got an empty parameter list