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

        Returns:
            torch.Tensor: Text embeddings used for zero-shot inference.

        Raises:
            RuntimeError: If text embeddings not collected via ``setup``.
        """
        if self._text_embeddings.numel() == 0:
            msg = "Text embeddings have not been collected. Pass a class name to the model using ``setup``."
            raise RuntimeError(msg)
        return self._text_embeddings
Get model's text embeddings.

        Returns:
            torch.Tensor: Text embeddings used for zero-shot inference.

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