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

train model #21

Closed
Minami77 opened this issue Mar 18, 2022 · 0 comments
Closed

train model #21

Minami77 opened this issue Mar 18, 2022 · 0 comments

Comments

@Minami77
Copy link

训练时遇到一下问题,请问这种怎么处理
Trying to backward through the graph a second time, but the saved intermediate results have already been freed. Specify retain_graph=True when calling .backward() or autograd.grad() the first time.

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

1 participant