PyTorch Forums
RuntimeError: element 0 of variables does not require grad and does not have a grad_fn
autograd
yy0125
(Yue Yin)
April 8, 2022, 2:10am
60
this
is related. Basically you cannot introduce non-differentiable operation.
show post in topic