# tf.autograph.experimental.do_not_convert

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/autograph/experimental/do_not_convert) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/autograph/impl/api.py#L273-L298) |

Decorator that suppresses the conversion of a function.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.autograph.experimental.do_not_convert`](https://www.tensorflow.org/api_docs/python/tf/autograph/experimental/do_not_convert)

<br />

    tf.autograph.experimental.do_not_convert(
        func=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `func` | function to decorate. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| If `func` is not None, returns a `Callable` which is equivalent to `func`, but is not converted by AutoGraph. If `func` is None, returns a decorator that, when invoked with a single `func` argument, returns a `Callable` equivalent to the above case. ||

<br />