# tf.compat.v1.keras.backend.set_session

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.13.1/keras/backend.py#L848-L856) |

Sets the global TensorFlow session.

    tf.compat.v1.keras.backend.set_session(
        session
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `session` | A TF Session. |

<br />