Skip to content
RED SAG Skills
mediumStudy question · answer published in PyTorch interview questions, so no pointsdeep-learningpytorchautograd

backward() on a vector

What happens when this code runs?

x = torch.randn(3, requires_grad=True)
y = x * 2
y.backward()
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions