def dump_prototype(self, path):
        """Save the features extracted from the prototype to specific path.

        Args:
            path (str): Path to save feature.
        """
        if not self.prototype_inited:
            self.prepare_prototype()
        torch.save(self.prototype_vecs, path)
Save the features extracted from the prototype to specific path.

        Args:
            path (str): Path to save feature.
        
mmpretrain/models/retrievers/image2image.py