src/transformers/models/blip_2/modeling_blip_2.py/Blip2ForConditionalGenerationModelOutput/to_tuple
class Blip2ForConditionalGenerationModelOutput:    def to_tuple(self) -> Tuple[Any]:
        return tuple(
            self[k]
            if k not in ["vision_outputs", "qformer_outputs", "language_model_outputs"]
            else getattr(self, k).to_tuple()
            for k in self.keys()
        )