# tf.signal.ifftshift

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/signal/ifftshift) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/signal/fft_ops.py#L370-L408) |

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), \`tf.compat.v2.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 />

#### Numpy Compatibility

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