improved-diffusion
improved-diffusion copied to clipboard
fix a issue of RuntimeError
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
@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.
Hi @ShuAiii , Using detach is enough, I have tested the fix and reproduced the project successfully.
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 @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.
Thanks for resolving it