Traceback (most recent call last):


 "train.py", line 310, in <module>

main()


 "train.py", line 158, in main

model.optimize_parameters(current_step)


 "/home/thrc_pyj/mmsr-master/codes/models/SRGAN_model.py", line 145, in optimize_parameters

l_g_pix = self.l_pix_w * self.cri_pix(self.fake_H, self.var_H)


 "/home/thrc_pyj/anaconda3/envs/torch1/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/home/thrc_pyj/anaconda3/envs/torch1/lib/python3.7/site-packages/torch/nn/modules/loss.py", line 91, in forward

return F.l1_loss(input, target, reduction=self.reduction)


 "/home/thrc_pyj/anaconda3/envs/torch1/lib/python3.7/site-packages/torch/nn/functional.py", line 2230, in l1_loss

expanded_input, expanded_target = torch.broadcast_tensors(input, target)


 "/home/thrc_pyj/anaconda3/envs/torch1/lib/python3.7/site-packages/torch/functional.py", line 62, in broadcast_tensors

return torch._C._VariableFunctions.broadcast_tensors(tensors)
RuntimeError: The size of tensor a (172) must match the size of tensor b (129) at non-singleton dimension 3

Traceback (most recent call last):


 "/usr/lib/python3.5/concurrent/futures/_base.py", line 297, in _invoke_callbacks

callback(self)


 "/usr/lib/python3.5/asyncio/futures.py", line 463, in _call_set_state

dest_loop.call_soon_threadsafe(_set_state, destination, source)


 "/usr/lib/python3.5/asyncio/base_events.py", line 618, in call_soon_threadsafe

self._check_closed()


 "/usr/lib/python3.5/asyncio/base_events.py", line 357, in _check_closed

raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
