Skip to content
ml-recall

#memory-sharing

1 question from PyTorch

Timed test

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

Take a test
Q 1 / 1Score 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