def apply_image_paddle(self,
                           image: paddle.Tensor) -> paddle.Tensor:  # not used
        """
        Expects batched images with shape BxCxHxW and float format. This
        transformation may not exactly match apply_image. apply_image is
        the transformation expected by the model.
        """
        # Expects an image in BCHW format. May not exactly match apply_image.
        target_size = self.get_preprocess_shape(image.shape[0], image.shape[1],
                                                self.target_length)
        return F.interpolate(
            image,
            target_size,
            mode="bilinear",
            align_corners=False,  # todo: missing this flag antialias=True
        )

        Expects batched images with shape BxCxHxW and float format. This
        transformation may not exactly match apply_image. apply_image is
        the transformation expected by the model.
        
contrib/SegmentAnything/segment_anything/utils/transforms.py