# tf.autograph.trace

<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/autograph/utils/ag_logging.py#L87-L107) |

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)

<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 />