Question 1: Single choice
easyAI-checkedPyTorchnet = nn.Sequential(nn.Linear(20, 256), nn.ReLU(), nn.Linear(128, 10))
X = torch.rand(2, 20)
The second linear layer expects 128 inputs, but the first one produces 256. What happens?
3 questions from PyTorch
3 questions · 3 min · score and explanations at the end
net = nn.Sequential(nn.Linear(20, 256), nn.ReLU(), nn.Linear(128, 10))
X = torch.rand(2, 20)
The second linear layer expects 128 inputs, but the first one produces 256. What happens?