# tf.math.conj

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/math/conj) | [![](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/math_ops.py#L3413-L3455) |

Returns the complex conjugate of a complex number.

#### View aliases


**Main aliases**

\`tf.conj\`
**Compat aliases for migration**

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

[`tf.compat.v1.conj`](https://www.tensorflow.org/api_docs/python/tf/math/conj), [`tf.compat.v1.math.conj`](https://www.tensorflow.org/api_docs/python/tf/math/conj), \`tf.compat.v2.math.conj\`

<br />

    tf.math.conj(
        x, name=None
    )

Given a tensor `input` of complex numbers, this operation returns a tensor of
complex numbers that are the complex conjugate of each element in `input`. The
complex numbers in `input` must be of the form \\(a + bj\\), where *a* is the
real part and *b* is the imaginary part.

The complex conjugate returned by this operation is of the form \\(a - bj\\).

#### For example:

# tensor 'input' is \[-2.25 + 4.75j, 3.25 + 5.75j\]

tf.math.conj(input) ==\> \[-2.25 - 4.75j, 3.25 - 5.75j\]

If `x` is real, it is returned unchanged.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | `Tensor` to conjugate. Must have numeric or variant type. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` that is the conjugate of `x` (with the same type). ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If `x` is not a numeric tensor. |

<br />