If you call your model with an image of size 64x64, it should work.
Generally, I would use view as:
x = x.view(x.size(0), -1)

This will keep the batch size constant and puts all remaining values to dim1.