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

关于代码请教 #2

Open
YuQi9797 opened this issue Jul 11, 2020 · 0 comments
Open

关于代码请教 #2

YuQi9797 opened this issue Jul 11, 2020 · 0 comments

Comments

@YuQi9797
Copy link

YuQi9797 commented Jul 11, 2020

作者您好,关于https://github.com/frankwang345/pruning-from-scratch/blob/master/script/learn_gates.py#L98

optimizer = torch.optim.Adam(gates_params, lr=args.lr)

这处代码是不是,相当于就是整个模型中只对gates参数进行了优化,而该模型其他的参数是不会进行优化的?

@YuQi9797 YuQi9797 reopened this Jul 12, 2020
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