def patch_embeddings(self) -> torch.Tensor:
        """Get model's patch embeddings.

        Returns:
            torch.Tensor: Patch embeddings used for few-shot inference.

        Raises:
            RuntimeError: If patch embeddings not collected via ``setup``.
        """
        if self._patch_embeddings.numel() == 0:
            msg = "Patch embeddings have not been collected. Pass some reference images to the model using ``setup``."
            raise RuntimeError(msg)
        return self._patch_embeddings
Get model's patch embeddings.

        Returns:
            torch.Tensor: Patch embeddings used for few-shot inference.

        Raises:
            RuntimeError: If patch embeddings not collected via ``setup``.
        
src/anomalib/models/image/winclip/torch_model.py