Jan-18-2017, 01:33 AM
Python 3.5
Tensorflow GPU
Hello,
I am trying to perform a fft operation on a variable
and it gives an error
So i tried converting the variable to complex number and it shows another error.
Please help me to resolve the issue
Tensorflow GPU
Hello,
I am trying to perform a fft operation on a variable
1 2 3 4 5 |
x = tf.Variable([ 1 , 2 , 3 , 4 , 5 ],df. type = tf.float32) y = tf.fft(x) sess = tf.Session() sess.run(model) print (sess.run(d)) |
1 |
TypeError: Input 'input' of 'FFT' Op has type float32 that does not match expected type of complex64 |
1 2 3 4 5 6 7 8 |
a = tf.Variable ([ 1 , 2 , 3 , 4 , 5 ],dtype = tf.float32) b = tf.Variable([ 0 , 0 , 0 , 0 , 0 ],dtype = tf.float32) c = tf. complex (a,b) d = tf.fft(c model = init_all_variables() sess = tf.Session() sess.run(model) print (sess.run(c)) |
1 2 3 4 |
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'FFT' with these attrs. Registered kernels: <no registered kernels> [[Node: FFT = FFT[]( Complex )]] |