Skip to content

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.

4 participants