# Module: tf.compat.v1.app

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/compat/v1/app) |

Generic entry point script.

## Modules

[`flags`](https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/compat/v1/flags) module: Import router for absl.flags. See <https://github.com/abseil/abseil-py>

## Functions

[`run(...)`](https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/compat/v1/app/run): Runs the program with an optional 'main' function and 'argv' list.