Output images with gradient during inference
lelechen63 opened this issue · 1 comments
lelechen63 commented
Hi there,
I try to output the image with the gradient. However, I found that if I use your default testing code, it will call whole_grad_forward (
), and will remove the gradient. If I comment out the torch.no_grad(), it would be out of memory. Is there a way to output the image with gradient? Thankslelechen63 commented
Solved.