The view operation is failing, since the specified shape [-1, 1800] doesn’t fit the tensor shape.
You could use x = x.view(x.size(0), -1) instead and check, if you would need to adapt the in_features of self.fc1 in case it’s raising a shape mismatch error afterwards.