Cupy: `cupyx.scipy.fft.{hfft*, ihfft*}` ignored the `overwrite_x` argument

Created on 5 Apr 2021  路  3Comments  路  Source: cupy/cupy

See https://github.com/cupy/cupy/pull/4996#discussion_r606606797. I don't immediately see a band-aid fix, so keep this documented until I (or someone else!) do.

bug contribution-welcome

Most helpful comment

I would like to work on this, as soon as #4996 is merged!

All 3 comments

I would like to work on this, as soon as #4996 is merged!

I think one way to do it is to not call their NumPy counterparts (ex: cupy.fft._fft.hfft) directly, but instead call the internal function _fft or _fftn so that we can pass overwrite_x.

Yes I think that will fix it. Otherwise performing a deep copy to the input array from the auxiliary array might also work, but that would mean using additional space for the auxiliary array.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eldaromer picture eldaromer  路  3Comments

kmaehashi picture kmaehashi  路  3Comments

kmaehashi picture kmaehashi  路  3Comments

Bartzi picture Bartzi  路  4Comments

quasiben picture quasiben  路  4Comments