The first conv layer in your model (conv1 = nn.Conv2d(1, 10, kernel_size=5)) expects an input tensor with a single channel, while you are passing a batch of 64 image tensors each with 3 channels.
You would either have to transform the CIFAR10 images to grayscale images or change the conv1 layer to accept 3 input channels.