Hello! Thank you for your answer. I used your instruction and did not understand what does code “grad_outputs=ypred.data.new(y_pred.shape).fill_(1)” do. Can you please explain it or point me to explanation?