This new error points to the expected shape mismatch in the activation and the next layer (I assume it’s self.aux_linear and self.disc_linear).
You can print the shape of x after the proper flattening and set the in_features of both linear layers to this value.