Since the number of features of the input activation to self.fc1 is 387200, you should set in_features of self.fc1 also to this value.
Your current model expects 256*6*6 input features, which doesn’t match the activation shape for your current input.