I trying to add tensors of different length and feed to Linear Layer
input1 = torch.randn(4, 40, 56, 56).view(-1, 4)

input2 = torch.randn(4, 40, 55, 55).view(-1, 4)

input3 = torch.randn(4, 40, 54, 54).view(-1, 4)

output = input1 + input2 + input3

fc = torch.nn.Linear(62720, 3)

output = fc(output1)

But getting the following error
RuntimeError: The size of tensor a (125440) must match the size of tensor b (121000) at non-singleton dimension 0