Skip to content
ml-recall

#numpy-interop

2 questions from PyTorch

Timed test

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

Take a test
Q 1 / 2Score 0 / 0

Question 1: True or false

mediumAI-checkedPyTorch
x = torch.zeros(3)      # a CPU tensor
y = x.numpy()
x[0] = 5.0

True or false: after the last line, y[0] is also 5.0.

Choose one option