src/transformers/models/perceiver/modeling_perceiver.py/PerceiverMultimodalPreprocessor/num_channels
class PerceiverMultimodalPreprocessor:    def num_channels(self) -> int:
        max_channel_size = max(processor.num_channels for _, processor in self.modalities.items())
        common_channel_size = max_channel_size + self.min_padding_size
        return common_channel_size