This new error is raised, because the view operation creates a tensor, which doesn’t match the expected in_features of the next linear layer.
Try to use x = x.view(x.size(0), -1), print the shape, and make sure self.fc1 has the expected in_features set.