# tf.autograph.trace

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/autograph/trace) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/utils/ag_logging.py#L91-L111) |

Traces argument information at compilation time.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.autograph.trace(
        *args
    )

`trace` is useful when debugging, and it always executes during the tracing
phase, that is, when the TF graph is constructed.

*Example usage*

    import tensorflow as tf

    for i in tf.range(10):
      tf.autograph.trace(i)
    # Output: <Tensor ...>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `*args` | Arguments to print to `sys.stdout`. |

<br />