def irfft2(a, s=None, axes=((- 2), (- 1)), norm=None):
    '\n    Compute the 2-dimensional inverse FFT of a real array.\n\n    Parameters\n    ----------\n    a : array_like\n        The input tensor\n    s : sequence of ints, optional\n        Shape of the inverse FFT.\n    axes : sequence of ints, optional\n        The axes over which to compute the inverse fft.\n        Default is the last two axes.\n    norm : {None, "ortho"}, optional\n        Normalization mode (see `mt.fft`). Default is None.\n\n    Returns\n    -------\n    out : Tensor\n        The result of the inverse real 2-D FFT.\n\n    See Also\n    --------\n    irfftn : Compute the inverse of the N-dimensional FFT of real input.\n\n    Notes\n    -----\n    This is really `irfftn` with different defaults.\n    For more details see `irfftn`.\n\n    '
    if (len(axes) != 2):
        raise ValueError('axes length should be 2')
    a = astensor(a)
    axes = validate_fftn(a, s=s, axes=axes, norm=norm)
    op = TensorIRFFT2(shape=s, axes=axes, norm=norm, dtype=np.dtype(np.float_))
    return op(a)
Compute the 2-dimensional inverse FFT of a real array.

Parameters
----------
a : array_like
    The input tensor
s : sequence of ints, optional
    Shape of the inverse FFT.
axes : sequence of ints, optional
    The axes over which to compute the inverse fft.
    Default is the last two axes.
norm : {None, "ortho"}, optional
    Normalization mode (see `mt.fft`). Default is None.

Returns
-------
out : Tensor
    The result of the inverse real 2-D FFT.

See Also
--------
irfftn : Compute the inverse of the N-dimensional FFT of real input.

Notes
-----
This is really `irfftn` with different defaults.
For more details see `irfftn`.
def irfft2(a, s=None, axes=((- 2), (- 1)), norm=None):
    '\n    Compute the 2-dimensional inverse FFT of a real array.\n\n    Parameters\n    ----------\n    a : array_like\n        The input tensor\n    s : sequence of ints, optional\n        Shape of the inverse FFT.\n    axes : sequence of ints, optional\n        The axes over which to compute the inverse fft.\n        Default is the last two axes.\n    norm : {None, "ortho"}, optional\n        Normalization mode (see `mt.fft`). Default is None.\n\n    Returns\n    -------\n    out : Tensor\n        The result of the inverse real 2-D FFT.\n\n    See Also\n    --------\n    irfftn : Compute the inverse of the N-dimensional FFT of real input.\n\n    Notes\n    -----\n    This is really `irfftn` with different defaults.\n    For more details see `irfftn`.\n\n    '
    if (len(axes) != 2):
        raise ValueError('axes length should be 2')
    a = astensor(a)
    axes = validate_fftn(a, s=s, axes=axes, norm=norm)
    op = TensorIRFFT2(shape=s, axes=axes, norm=norm, dtype=np.dtype(np.float_))
    return op(a)