def encode_to_vector(self, batch: AttrDict, options: Optional[AttrDict] = None) -> torch.Tensor:
        """
        Encode the batch into a single latent vector.
        """

        Encode the batch into a single latent vector.
        
shap_e/models/transmitter/base.py