Solved by albanD in post #2 
              
              
                Hi, 
It is because FloatTensor creates a brand new Tensor from raw values. 
You can use torch.cat(myTensorList) or torch.stack(myTensorList) to do this.