DeblurGAN icon indicating copy to clipboard operation
DeblurGAN copied to clipboard

RuntimeError: The size of tensor a (32) must match the size of tensor b (20) at non-singleton dimension 0

Open praveenkumarchandaliya opened this issue 6 years ago • 1 comments

I am also face same problem in ConvoutionLSTM

('encoder input size', (20L, 3L, 128L, 128L)) ('x = ', 20) ('x.size(0) = ', (20L, 64L, 64L, 64L)) --------------------1 --------------------7 ('encoder input size', (32L, 3L, 128L, 128L)) ('x = ', 32) ('x.size(0) = ', (32L, 64L, 64L, 64L)) Traceback (most recent call last): File "main.py", line 204, in fixed_z = netE(fixed_img_v, encoder_h_1, encoder_h_2, encoder_h_3) File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 357, in call result = self.forward(*input, **kwargs) File "/home/mnit/Desktop/RNN_CAAE_Pytorch_10Label/models.py", line 62, in forward hidden1 = self.rnn1(x, hidden1) File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 357, in call result = self.forward(*input, **kwargs) File "/home/mnit/Desktop/RNN_CAAE_Pytorch_10Label/modules/conv_rnn.py", line 72, in forward gates = self.conv_ih(input) + self.conv_hh(hx) RuntimeError: The size of tensor a (32) must match the size of tensor b (20) at non-singleton dimension 0

praveenkumarchandaliya avatar Jul 14 '18 18:07 praveenkumarchandaliya

I also encountered this problem. Have you solved it?

anruoxi123 avatar Jan 25 '19 06:01 anruoxi123