0 votes
in JAVA by
Which of the following function is used to stop tracking gradients on Tensor?

(i)torch.nn.grad(False)

(ii)torch.grad(Flase)

(iii)torch.nn.no_grad()

(iv)torch.no_grad()

1 Answer

0 votes
by
Correct Answer of this question is (iv)torch.no_grad()
...