Question 1: Short answer
mediumAI-checkedPyTorchx = torch.rand(1, 1, 1, 10)
a = x.squeeze()
b = x.squeeze(0)
a has shape (10,). What is the shape of b?
1 question from PyTorch
1 question · 1 min · score and explanations at the end
x = torch.rand(1, 1, 1, 10)
a = x.squeeze()
b = x.squeeze(0)
a has shape (10,). What is the shape of b?