# tf.compat.v1.profiler.advise

<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/profiler/model_analyzer.py#L385-L422) |

Auto profile and advise.

    tf.compat.v1.profiler.advise(
        graph=None, run_meta=None, options=_DEFAULT_ADVISE_OPTIONS
    )

Builds profiles and automatically check anomalies of various
aspects. For more details:
<https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/README.md>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `graph` | tf.Graph. If None and eager execution is not enabled, use default graph. |
| `run_meta` | optional tensorflow.RunMetadata proto. It is necessary to support run time information profiling, such as time and memory. |
| `options` | see ALL_ADVICE example above. Default checks everything. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Returns AdviceProto proto ||

<br />