mindscience.sciops.fft.ASD_IRFFT

class mindscience.sciops.fft.ASD_IRFFT[source]

1D complex-to-real inverse FFT transform using Ascend NPU acceleration.

This operator performs 1D Inverse Real Fast Fourier Transform on complex input tensors, optimized for Ascend NPU hardware acceleration.

Inputs:
  • xr (Tensor): Real part of input complex tensor with data type float32.

  • xi (Tensor): Imaginary part of input complex tensor with data type float32.

Outputs:
  • yr (Tensor): Output real tensor with data type float32.

Raises

ValueError – If input tensor data type is not float32.

Examples

>>> import mindspore as ms
>>> from mindscience.sciops.fft import ASD_IRFFT
>>> xr = ms.Tensor([[1.0, 2.0, 3.0]], ms.float32)
>>> xi = ms.Tensor([[0.0, 0.0, 0.0]], ms.float32)
>>> asd_irfft = ASD_IRFFT()
>>> yr = asd_irfft(xr, xi)
>>> print(yr.shape)
(1, 4)