def _pe_encoding(self, coords: paddle.Tensor) -> paddle.Tensor:
        """Positionally encode points that are normalized to [0,1]."""
        coords = 2 * coords - 1
        coords = coords @self.positional_encoding_gaussian_matrix
        coords = 2 * np.pi * coords
        return paddle.concat(
            x=[paddle.sin(x=coords), paddle.cos(x=coords)], axis=-1)
Positionally encode points that are normalized to [0,1].
contrib/SegmentAnything/segment_anything/modeling/prompt_encoder.py