Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any help with error #19

Open
Haithamsalah14 opened this issue May 12, 2023 · 1 comment
Open

any help with error #19

Haithamsalah14 opened this issue May 12, 2023 · 1 comment

Comments

@Haithamsalah14
Copy link

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

@Paul-py666
Copy link

i think you should try in cmd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants