You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error:
RuntimeError: output with shape [1, 28, 28] doesn't match the broadcast shape [3, 28, 28]
MNIST has [1, 28, 28] and [3. 28. 28] two format. In this code,
change
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
to
transforms.Normalize([0.5], [0.5])
The text was updated successfully, but these errors were encountered:
error:
RuntimeError: output with shape [1, 28, 28] doesn't match the broadcast shape [3, 28, 28]
MNIST has [1, 28, 28] and [3. 28. 28] two format. In this code,
change
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
to
transforms.Normalize([0.5], [0.5])
The text was updated successfully, but these errors were encountered: