Skip to content
ml-recall

#in-place

2 questions from Deep Learning Frameworks, NumPy

Timed test

2 questions · 2 min · score and explanations at the end

Take a test
Q 1 / 2Score 0 / 0

Question 1: Single choice

mediumAI-checkedDeep Learning Frameworks

A hand-written SGD step updates a weight in place:

w = torch.ones(3, requires_grad=True)
w -= 0.1 * torch.ones(3)

What happens on the last line?

Choose one option