Table Of Contents
Table Of Contents


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/

  • 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.


out – The output of this function.

Return type

NDArray or list of NDArrays