Question 1: Short answer
easyAI-checkedPyTorchA and B each hold a batch of two matrices, with the batch dimension first:
import torch
A = torch.tensor([[[1., 0.], [2., 1.]],
[[0., 3.], [1., 2.]]])
B = torch.tensor([[[2., 1.], [1., 4.]],
[[1., 0.], [2., 5.]]])
C = A @ B
print(C[0, 1, 1].item(), C[1, 1, 0].item())
The code prints followed by .
Fill in every blank (hints in the boxes). Enter moves to the next blank.