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