Question 1: Single choice
hardAI-checkedPyTorchMathematically, has the gradient
for . What does x.grad contain
after this code runs at ?
x = torch.zeros(3, requires_grad=True)
f = torch.sqrt((x ** 2).sum())
f.backward()2 questions from PyTorch
2 questions · 2 min · score and explanations at the end
Mathematically, has the gradient
for . What does x.grad contain
after this code runs at ?
x = torch.zeros(3, requires_grad=True)
f = torch.sqrt((x ** 2).sum())
f.backward()