Niki:

TypeError: expected torch.FloatTensor (got torch.LongTensor)



Hi Niki,
Actually, you are concatenating tensors. You can use following code to concatenate tensors.(This is the conventional way to concatenate tensors in pytorch)
for i in range(5):
    labels_total = torch.cat((labels_total, labels_shuffel[i]))

Originally, you are getting a type error. Change that particular torch tensor to float. This should help.