# tf.compat.v1.app.run

<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/platform/app.py#L30-L36) |

Runs the program with an optional 'main' function and 'argv' list.

    tf.compat.v1.app.run(
        main=None, argv=None
    )