In training mode, function is called which calculate the loss and do “loss.backward()”.
In validation, if i call the same function which lies inside “with torch.no_grad”, is it do “loss.backward()” OR not?