Table Of Contents
Table Of Contents

BilinearResize2D

mxnet.ndarray.contrib.BilinearResize2D(data=None, height=_Null, width=_Null, out=None, name=None, **kwargs)

Perform 2D resizing (upsampling or downsampling) for 4D input using bilinear interpolation.

Expected input is a 4 dimensional NDArray (NCHW) and the output with the shape of (N x C x height x width). The key idea of bilinear interpolation is to perform linear interpolation first in one direction, and then again in the other direction. See the wikipedia of Bilinear interpolation for more details.

Defined in src/operator/contrib/bilinear_resize.cc:L175

Parameters:
  • data (NDArray) – Input data
  • height (int, required) – output height (required)
  • width (int, required) – output width (required)
  • out (NDArray, optional) – The output NDArray to hold the result.
Returns:

out – The output of this function.

Return type:

NDArray or list of NDArrays