def forward_with_coords(self,
                            coords_input: paddle.Tensor,
                            image_size: Tuple[int, int]) -> paddle.Tensor:
        """Positionally encode points that are not normalized to [0,1]."""
        coords = coords_input.clone()
        coords[:, :, (0)] = coords[:, :, (0)] / image_size[1]
        coords[:, :, (1)] = coords[:, :, (1)] / image_size[0]
        """Class Method: *.to, not convert, please check whether it is torch.Tensor.*/Optimizer.*/nn.Module.*, and convert manually"""
        return self._pe_encoding(coords.astype('float32'))
Positionally encode points that are not normalized to [0,1].
contrib/SegmentAnything/segment_anything/modeling/prompt_encoder.py