Hi,
I added a conv as following
self.conv1 = nn.Conv2d(1, 6, kernel_size=(5,5),stride=1, padding=0)
self.conv1_5 = nn.Conv2d(6, 12, kernel_size=(5,5),stride=1, padding=1)
self.conv2 = nn.Conv2d(12, 16, kernel_size=(5,5),stride=1, padding=0)
and
out = F.relu(self.conv1_5(out))
in the forward function. Then I got the error message as following.
RuntimeError: Given input size: (16x1x1). Calculated output size: (16x0x0). Output size is too small at /pytorch/torch/lib/THCUNN/generic/SpatialDilatedMaxPooling.cu:69
Would you please help to give some clues?
Thanks.
Hi,
I added a conv as following
and
in the forward function. Then I got the error message as following.
RuntimeError: Given input size: (16x1x1). Calculated output size: (16x0x0). Output size is too small at /pytorch/torch/lib/THCUNN/generic/SpatialDilatedMaxPooling.cu:69
Would you please help to give some clues?
Thanks.