I am trying to convert image into fast fourier transform signal and used the following peace of code:
fake_A1 = tf.signal.fft2d(fake_A1)
where input image type is: <class 'numpy.ndarray'> but I am getting following error:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Value for attr 'Tcomplex' of float is not in the list of allowed values: complex64, complex128
; NodeDef: {{node FFT2D}}; Op<name=FFT2D; signature=input:Tcomplex -> output:Tcomplex; attr=Tcomplex:type,default=DT_COMPLEX64,allowed=[DT_COMPLEX64, DT_COMPLEX128]> [Op:FFT2D]
How may I make it solve?
