# tf.signal.ifftshift

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/ops/signal/fft_ops.py#L419-L461) |

The inverse of fftshift.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.signal.ifftshift`](https://www.tensorflow.org/api_docs/python/tf/signal/ifftshift)

<br />

    tf.signal.ifftshift(
        x, axes=None, name=None
    )

Although identical for even-length x,
the functions differ by one sample for odd-length x.

#### For example:

    x = tf.signal.ifftshift([[ 0.,  1.,  2.],[ 3.,  4., -4.],[-3., -2., -1.]])
    x.numpy() # array([[ 4., -4.,  3.],[-2., -1., -3.],[ 1.,  2.,  0.]])

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | `Tensor`, input tensor. |
| `axes` | `int` or shape `tuple` Axes over which to calculate. Defaults to None, which shifts all axes. |
| `name` | An optional name for the operation. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`, The shifted tensor. ||

<br />

<br />

## numpy compatibility

<br />

Equivalent to numpy.fft.ifftshift.
<https://docs.scipy.org/doc/numpy/reference/generated/numpy.fft.ifftshift.html>

<br />

<br />