few-shot icon indicating copy to clipboard operation
few-shot copied to clipboard

Queries about the MAML implementation

Open patrolli opened this issue 4 years ago • 2 comments

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!

patrolli avatar Apr 25 '20 04:04 patrolli

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

frajem avatar May 14 '20 14:05 frajem

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

atseng17 avatar Dec 09 '20 18:12 atseng17