|
|
|
@ -7109,9 +7109,6 @@ def image_resize(input,
|
|
|
|
|
align_mode=1,
|
|
|
|
|
data_format='NCHW'):
|
|
|
|
|
"""
|
|
|
|
|
:alias_main: paddle.nn.functional.image_resize
|
|
|
|
|
:alias: paddle.nn.functional.image_resize,paddle.nn.functional.vision.image_resize
|
|
|
|
|
:old_api: paddle.fluid.layers.image_resize
|
|
|
|
|
|
|
|
|
|
This op resizes a batch of images.
|
|
|
|
|
|
|
|
|
@ -7351,8 +7348,10 @@ def image_resize(input,
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
#declarative mode
|
|
|
|
|
import paddle
|
|
|
|
|
import paddle.fluid as fluid
|
|
|
|
|
import numpy as np
|
|
|
|
|
paddle.enable_static()
|
|
|
|
|
input = fluid.data(name="input", shape=[None,3,6,10])
|
|
|
|
|
|
|
|
|
|
#1
|
|
|
|
@ -7709,9 +7708,6 @@ def resize_bilinear(input,
|
|
|
|
|
align_mode=1,
|
|
|
|
|
data_format='NCHW'):
|
|
|
|
|
"""
|
|
|
|
|
:alias_main: paddle.nn.functional.resize_bilinear
|
|
|
|
|
:alias: paddle.nn.functional.resize_bilinear,paddle.nn.functional.vision.resize_bilinear
|
|
|
|
|
:old_api: paddle.fluid.layers.resize_bilinear
|
|
|
|
|
|
|
|
|
|
This op resizes the input by performing bilinear interpolation based on given
|
|
|
|
|
output shape which specified by actual_shape, out_shape and scale
|
|
|
|
@ -7804,6 +7800,8 @@ def resize_bilinear(input,
|
|
|
|
|
|
|
|
|
|
#declarative mode
|
|
|
|
|
import paddle.fluid as fluid
|
|
|
|
|
import paddle
|
|
|
|
|
paddle.enable_static()
|
|
|
|
|
import numpy as np
|
|
|
|
|
input = fluid.data(name="input", shape=[None,3,6,10])
|
|
|
|
|
|
|
|
|
@ -7876,9 +7874,6 @@ def resize_trilinear(input,
|
|
|
|
|
align_mode=1,
|
|
|
|
|
data_format='NCDHW'):
|
|
|
|
|
"""
|
|
|
|
|
:alias_main: paddle.nn.functional.resize_trilinear
|
|
|
|
|
:alias: paddle.nn.functional.resize_trilinear,paddle.nn.functional.vision.resize_trilinear
|
|
|
|
|
:old_api: paddle.fluid.layers.resize_trilinear
|
|
|
|
|
|
|
|
|
|
This op resizes the input by performing trilinear interpolation based on given
|
|
|
|
|
output shape which specified by actual_shape, out_shape and scale
|
|
|
|
@ -7971,7 +7966,9 @@ def resize_trilinear(input,
|
|
|
|
|
|
|
|
|
|
#declarative mode
|
|
|
|
|
import paddle.fluid as fluid
|
|
|
|
|
import paddle
|
|
|
|
|
import numpy as np
|
|
|
|
|
paddle.enable_static()
|
|
|
|
|
input = fluid.data(name="input", shape=[None,3,6,8,10])
|
|
|
|
|
|
|
|
|
|
#1
|
|
|
|
@ -8044,9 +8041,6 @@ def resize_nearest(input,
|
|
|
|
|
align_corners=True,
|
|
|
|
|
data_format='NCHW'):
|
|
|
|
|
"""
|
|
|
|
|
:alias_main: paddle.nn.functional.resize_nearest
|
|
|
|
|
:alias: paddle.nn.functional.resize_nearest,paddle.nn.functional.vision.resize_nearest
|
|
|
|
|
:old_api: paddle.fluid.layers.resize_nearest
|
|
|
|
|
|
|
|
|
|
This op resizes the input by performing nearest neighbor interpolation in both the
|
|
|
|
|
height direction and the width direction based on given output shape
|
|
|
|
@ -8129,6 +8123,9 @@ def resize_nearest(input,
|
|
|
|
|
#declarative mode
|
|
|
|
|
import paddle.fluid as fluid
|
|
|
|
|
import numpy as np
|
|
|
|
|
import paddle
|
|
|
|
|
paddle.enable_static()
|
|
|
|
|
|
|
|
|
|
input = fluid.data(name="input", shape=[None,3,6,10])
|
|
|
|
|
|
|
|
|
|
#1
|
|
|
|
|