src/transformers/models/clip/modeling_tf_clip.py/TFCLIPOutput/to_tuple
class TFCLIPOutput:    def to_tuple(self) -> Tuple[Any]:
        return tuple(
            self[k] if k not in ["text_model_output", "vision_model_output"] else getattr(self, k).to_tuple()
            for k in self.keys()
        )