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