I have a tf.Tensor
of, for example, shape (31, 6, 6, 3)
.
I want to perform tf.signal.fft2d on the shapes 6, 6
so, in other words, in the middle. However, the description says:
Computes the 2-dimensional discrete Fourier transform over the inner-most 2 dimensions of input
I could do it with a for loop but I fear it might be very ineffective. Is there a fastest way?
The result must have the same output shape of course.