I added drop_last=True and it’s working now, for batch_size=6, nb_cat=2, nb_classes=10, epoch=3:
print(inputs.shape): torch.Size([3, 3, 64, 32])
print(one_hot_labels.shape): torch.Size([3, 10])
here (in size) the first element (3) is split_size, am I right? Is there any ways that be dependent on batch_size, like Size([6, 3, 64, 32]) or Size([6, 10])?