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

Queries about the MAML implementation #29

Open
patrolli opened this issue Apr 25, 2020 · 2 comments
Open

Queries about the MAML implementation #29

patrolli opened this issue Apr 25, 2020 · 2 comments

Comments

@patrolli
Copy link

In line 84 few_shot/maml.py
loss.backward(retain_graph=True)
I don't understand the usage of this sentence. I wonder it aims to calculate the gradient of task_val_loss towards the initial parameters, but it has not been used in the latter codes. Could you explain the meaning of this sentence? Thanks a lot!

@frajem
Copy link

frajem commented May 14, 2020

I'm interested to know the answer to this question, too. Thank you!

@atseng17
Copy link

atseng17 commented Dec 9, 2020

I wonder if this line is not necessary as there are no updates on the weights after this line, but I might be wrong

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

3 participants