Thanks for the code.
Based on the previously posted input shape of [1, 3, 32, 32] you will run into a shape mismatch error in the view operation and then in self.fc1.
Replace them with x = x.view(x.size(0), -1) and self.fc1 = nn.Linear(in_features=32,out_features=50) and it will work:
model = Net()
x = torch.randn(1, 3, 32, 32)
out = model(x)
model.eval()
out = model(x)