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

ValueError: optimizer got an empty parameter list #4

Open
King4819 opened this issue Jun 22, 2023 · 0 comments
Open

ValueError: optimizer got an empty parameter list #4

King4819 opened this issue Jun 22, 2023 · 0 comments

Comments

@King4819
Copy link

[23:35:14.705] =================FLAGS==================
[23:35:14.705] gpu: 0
[23:35:14.705] dataset: cifar10
[23:35:14.705] arch: resnet50
[23:35:14.705] sparsity_level: 0.3
[23:35:14.705] lr: 0.01
[23:35:14.705] lambd: 0.5
[23:35:14.705] epochs: 10
[23:35:14.705] log_interval: 100
[23:35:14.706] train_batch_size: 128
[23:35:14.706] expanded_inchannel: 80
[23:35:14.706] seed: 1
[23:35:14.706] num_classes: 10
[23:35:14.706] device: cuda
[23:35:14.706] logdir: ./logs/seed-1/cifar10-resnet50/channel-80-sparsity-0.30
[23:35:14.706] ========================================
[23:35:14.706] ==> Preparing data..
[23:35:15.184] ==> Initializing model...
[23:35:16.123] ==> Transforming model...
Traceback (most recent call last):
File "/home/n26120642/Test_folder/pruning-from-scratch/learn_gates.py", line 98, in
optimizer = torch.optim.Adam(gates_params, lr=args.lr)
File "/home/n26120642/anaconda3/envs/test_env/lib/python3.10/site-packages/torch/optim/adam.py", line 137, in init
super(Adam, self).init(params, defaults)
File "/home/n26120642/anaconda3/envs/test_env/lib/python3.10/site-packages/torch/optim/optimizer.py", line 61, in init
raise ValueError("optimizer got an empty parameter list")
ValueError: optimizer got an empty parameter list

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

1 participant