Skip to content
ml-recall

#no-grad

1 question from Deep Learning Frameworks

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Single choice

easyAI-checkedDeep Learning Frameworks

What happens when the last line runs?

x = torch.ones(2, requires_grad=True)
with torch.no_grad():
    y = (x * 3).sum()
y.backward()
Choose one option