20 lines
1.4 KiB
ReStructuredText
20 lines
1.4 KiB
ReStructuredText
mindspore.numpy.fft.ifft2
|
||
=========================
|
||
|
||
.. py:function:: mindspore.numpy.fft.ifft2(a, s=None, axes=(-2, -1), norm=None)
|
||
|
||
计算 `fft2()` 的逆变换。
|
||
|
||
参见 :func:`mindspore.ops.ifft2` 获取更多详情。 不同之处在于 `a` 对应 `input` , `axes` 对应 `dim` 。
|
||
|
||
参数:
|
||
- **a** (Tensor) - 输入Tensor。 支持的dtype: - Ascend/CPU:int16, int32, int64, float16, float32, float64, complex64, complex128。
|
||
- **s** (tuple[int], 可选) - 结果中 `axes` 轴变换为的长度。 如果给定,输入将在计算 `ifft2` 之前进行零填充或截断为长度 `s` 。 默认值: ``(-2, -1)`` ,表示不处理 `a` 。
|
||
- **axes** (tuple[int], 可选) - 计算 `ifft2` 所沿的轴。 默认值: ``(-2, -1)`` ,表示在 `a` 最后两个维度上计算。
|
||
- **norm** (str, 可选) - 归一化模式。 默认值: ``None`` ,表示 ``"backward"`` 。 三种模式的定义如下, ``"backward"`` (无归一化), ``"forward"`` (按 :math:`1/n` 归一化), ``"ortho"`` (按 :math:`1/\sqrt{n}` 归一化)。
|
||
|
||
返回:
|
||
Tensor, `ifft()` 函数的结果。默认与 `a` shape相同。
|
||
如果给定 `s` ,则 `axes[i]` 轴的大小将更改为 `s[i]` 。
|
||
当 `a` 是 int16、int32、int64、float16、float32、complex64 类型时,返回值类型为 complex64。
|
||
当 `a` 是 float64 或 complex128 类型时,返回值类型为 complex128。 |