Skip to content
ml-recall

#silent-bugs

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: Short answer

hardAI-checkedPyTorch

S is square, so this code runs without an error. What is R[1, 0]? Round to 3 decimals.

S = torch.tensor([[1., 2, 3], [4, 5, 6], [7, 8, 9]])
R = S / S.sum(axis=1)

a number, 3 decimals