improved-diffusion icon indicating copy to clipboard operation
improved-diffusion copied to clipboard

fix a issue of RuntimeError

Open nicolgo opened this issue 2 years ago • 5 comments

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

nicolgo avatar Aug 18 '22 15:08 nicolgo

@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.

ShuAiii avatar Oct 05 '22 15:10 ShuAiii

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

nicolgo avatar Oct 05 '22 15:10 nicolgo

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

LinjieFu-U avatar Oct 18 '22 14:10 LinjieFu-U

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.

nicolgo avatar Oct 18 '22 14:10 nicolgo

Thanks for resolving it

AlterWW14 avatar May 08 '23 05:05 AlterWW14