Skip to content
ml-recall

#matmul

4 questions from PyTorch

Timed test

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

Take a test
Q 1 / 4Score 0 / 0

Question 1: Short answer

easyAI-checkedPyTorch
X = torch.rand(7, 7)
Y = torch.rand(1, 7)
Z = torch.matmul(X, Y.T)

torch.matmul(X, Y) would raise a shape error. What is the shape of Z?

Two dimensions, e.g. (3, 4)