Skip to content

fix a issue of RuntimeError #39

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix a issue of RuntimeError #39

wants to merge 1 commit into from

Conversation

nicolgo
Copy link

@nicolgo nicolgo commented Aug 18, 2022

fix the bug of RuntimeError: a leaf Variable that requires grad is being used in an in-place operation, detail can be seen at this issue

@ShuAiii
Copy link

ShuAiii commented Oct 5, 2022

@unixpickle is this ready to be merged? I'm running into the same problem and creating a new detached tensor seem to fix the issue.

@nicolgo
Copy link
Author

nicolgo commented Oct 5, 2022

Hi @ShuAiii ,
Using detach is enough, I have tested the fix and reproduced the project successfully.

@LinjieFu-U
Copy link

Hi @ShuAiii , Using detach is enough, I have tested the fix and reproduced the project successfully.

hi,I meet the same issue, how to solve it, can you give me a example,thanks

@nicolgo
Copy link
Author

nicolgo commented Oct 18, 2022

Hi @ShuAiii , Using detach is enough, I have tested the fix and reproduced the project successfully.

hi,I meet the same issue, how to solve it, can you give me a example,thanks

Hi @flj19951219 , you can check my commit in this pull request, I just change one line code.

@AlterWW14
Copy link

Thanks for resolving it

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

Successfully merging this pull request may close these issues.

None yet

4 participants