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

question: about create_graph #6

Closed
anu43 opened this issue Dec 13, 2020 · 1 comment
Closed

question: about create_graph #6

anu43 opened this issue Dec 13, 2020 · 1 comment
Labels
question Further information is requested

Comments

@anu43
Copy link

anu43 commented Dec 13, 2020

Hello,

First of all, appreciated this repo. I just wanna ask about the reason for the create_graph attr being True in this case.

Thanks,
Nihat

@davda54 davda54 added the question Further information is requested label Dec 13, 2020
@davda54
Copy link
Owner

davda54 commented Dec 13, 2020

Hi, thanks :) PyTorch needs to create the computational graph for the first derivative in order to calculate the second derivative (by default, the graph is not created to save resources when you need only the first derivative).

@davda54 davda54 closed this as completed Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants