I’m not sure, if I understand the question correctly, but you could just replace the linear layers assigned to self.fcX with your desired layers.
Since the expected input shape would be different, you might need to remove the .reshape operation.