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

Problems about meta_backward #11

Open
jiangxingxian opened this issue Nov 8, 2023 · 0 comments
Open

Problems about meta_backward #11

jiangxingxian opened this issue Nov 8, 2023 · 0 comments

Comments

@jiangxingxian
Copy link

I have the following problem with the function meta_backward:

X = X+g.mul(a[0].mul(-lr)+a[1]).sum() why should i use -lr?(https://github.com/alinlab/L2T-ww/blob/master/train/meta_optimizers.py#L134)

a_new = (a[0].mul(1-lrwd).add_(wd, a[1]).add_(p.grad.data),
a[1].mul(momentum).add_(-lr
momentum, a[0])) what does this function mean?(https://github.com/alinlab/L2T-ww/blob/master/train/meta_optimizers.py#L142-L143)

I would be very appreciated if you can help me:)

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