Closed Dan1900 closed 2 months ago
Without more context of the error, I understand you are trying to perform a gradient-based operation on a tensor that doesn't require gradients in torch.set_grad_enabled(False) so I suggest put true or false as you need or not
you can try to comment out the line of code “torch.set_grad_enabled(False)”
you can try to comment out the line of code “torch.set_grad_enabled(False)”
Without more context of the error, I understand you are trying to perform a gradient-based operation on a tensor that doesn't require gradients in torch.set_grad_enabled(False) so I suggest put true or false as you need or not
Thank you!
you can try to comment out the line of code “torch.set_grad_enabled(False)”
Thank you!
I write a script to reconstruct 3d without UI. I get this error:element 0 of tensors does not require grad and does not have a grad_fn. when I use app ,there is no problem. How can I fix my script?