-
Notifications
You must be signed in to change notification settings - Fork 420
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
the setting about torch.autograd.grad function #17
Comments
Generally speaking, you should set create_graph for 2nd order gradient. |
I use pytorch1.0.The default setting create_graph is False. |
@lynlynlyn IT's 2nd order implementation. |
if the inner loop gradients's |
Hello! Is there a consensus on this? Unless I am missing something, I also think you might need |
I also think it needs create_graph = True. |
@Deng-Y well, I have not worked on this project a long time. sorry for misleading information. Have you tried setting |
@dragen1860 I only try it on the other project. Not sure if it will improve the performance on this one. |
Thank you for your code.
if i want to run 2-order MAML,should I set create_graph=True?
The text was updated successfully, but these errors were encountered: