Hi team,
Please follow the below code,
x.requires_grad = True
loss.backward()
print(x.grad)
output:-
tensor([ 1.0545e-05,  9.5438e-06, -8.3444e-06,  …,         nan,
nan,         nan])
how to resolve this nan problem as i am unable to find the range of x.grad.
Please help me to resolve this issue.