src/transformers/models/flava/configuration_flava.py/FlavaConfig/to_dict
class FlavaConfig:    def to_dict(self):
        """
        Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`].

        Returns:
            `Dict[str, any]`: Dictionary of all the attributes that make up this configuration instance,
        """
        output = copy.deepcopy(self.__dict__)
        output["image_config"] = self.image_config.to_dict()
        output["text_config"] = self.text_config.to_dict()
        output["multimodal_config"] = self.multimodal_config.to_dict()
        output["image_codebook_config"] = self.image_codebook_config.to_dict()
        output["model_type"] = self.__class__.model_type
        return output