# tf.contrib.eager.run

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/framework/ops.py#L5810-L5835) |

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

    tf.contrib.eager.run(
        main=None, argv=None
    )

The program will run with eager execution enabled.

#### Example:

    import tensorflow as tf
    # Import subject to future changes:
    from tensorflow.contrib.eager.python import tfe

    def main(_):
      u = tf.constant(6.0)
      v = tf.constant(7.0)
      print(u * v)

    if __name__ == "__main__":
      tfe.run()

<br />

<br />

<br />

| ## Args ||
|---|---|
| `main` | the main function to run. |
| `argv` | the arguments to pass to it. |

<br />