Could you show us the dataset's format?
Dr-Zhou opened this issue · comments
biaozhou commented
mnist's format?
TinyZeaMays commented
for img, label in tqdm(train_loader):
print(img, label)
biaozhou commented
TinyZeaMays commented
I tested on pytorch 1.4.0. Some version may not support .mean(dim=[2, 3]), .squeeze(-1).squeeze(-1) may help.
biaozhou commented
Thank you. I will try it.