MAML-Pytorch icon indicating copy to clipboard operation
MAML-Pytorch copied to clipboard

create_graph parameter is False hence first-order MAML?

Open gunnxx opened this issue 3 years ago • 1 comments

Hi, I noticed that when using torch.autograd.grad, the implementation does not pass create_graph parameter which by default is False. See L#86 and L#116 of the Meta class. To compute higher-order derivatives, we need to set create_graph=True otherwise derivatives w.r.t fast_weights will not flow to the derivatives computation i.e. first-order only. Is it intentional to not set the create_graph parameter?

gunnxx avatar Sep 10 '21 09:09 gunnxx

It had been discussed in #32. Seems like the author have ignored this repository.....

BigWhitePolarBear avatar Nov 23 '21 09:11 BigWhitePolarBear