If I use .cuda() in each Tensor I get this message:
sequence = torch.cat([padding,sub_sequence],dim=0)
RuntimeError: inconsistent tensor sizes at /b/wheel/pytorch-src/torch/lib/THC/generic/THCTensorMath.cu:141