yongxuUSTC/sednn

Problem with "magnitude" mode

hangtingchen opened this issue · 2 comments

Hi Yong Xu,
I have read your code and meet some problem of the "magnitude" mode in func calc_sp

x = x.astype(np.float32)

The operation "astype" just throws away the imag part of a complex, which i have tested under numpy 1.13.3. Use np.abs to take magnitude. Is this a bug or something else ?

got it, thanks a lot