def extract_image_feat(self, images: torch.Tensor) -> torch.Tensor:
        """The function to extract image latent features."""
        if isinstance(self.vision_backbone, ModifiedResNet):
            return self.vision_backbone(images)
        return self.vision_backbone(images)[-1] @ self.vision_projection
The function to extract image latent features.
mmpretrain/models/multimodal/chinese_clip/chinese_clip.py