That is not the proper way to modify num_classes. This is…
model = torchvision.models.squeezenet.squeezenet1_1(num_classes = 14)

This way, the builtin  model.classifier will produce output with 14 classes. I see no good reason to replace the builtin classifier.
That being said, let’s check the data shape as it goes through the squeezenet… Your images are cropped to 224x224, and by following through the squeezenet source code 7 I find that model.features has output of shape (batches, 512, 13, 13)
Applying nn.Linear(13, 14) to that shape produces output of shape (batches, 512, 13, 14) which is incompatible with .view(batches, 14).
That is the source of the error you get.