def forward(self, data: dict, **kwargs):
        """Feed the inputs to the model."""
        data = self.model.data_preprocessor(data, False)
        feats = self.prototype.copy()
        feats.update(self.model.extract_feat(images=data['images']))
        return self.model.predict_all(
            feats, data['data_samples'], cal_t2i=False)[0]
Feed the inputs to the model.
mmpretrain/apis/multimodal_retrieval.py