I was able to figure out the error via python -m pdb learnFeaturePoseModel.py 0
A torch.DoubleTensor was part of the elements to be concatenated. All other elements were torch.FloatTensor. The error message is still misleading though and I think this has been referenced in https://github.com/pytorch/pytorch/issues/2485 49