Skip to content
RED SAGSkills
medium10 pts · first answer countspytorchtensor-shapes

Shape after a batched matmul

What does this code print?

import torch
a = torch.randn(8, 10, 64)
w = torch.randn(64, 32)
print((a @ w).shape)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions