I am trying to sum two tensors with dimensions:


a: 10 x 49 x 1024

b: 10 x 1024

Using the following code:
a + b.unsqueeze(1)
But it seems to expect both inputs with equal dimensions resulting in a RuntimeError:
RuntimeError: inconsistent tensor size at home/soumith/local/builder/wheel/pytorch-src/torch/lib/TH/generic/THTensorMath.c:601
Thanks