# Module: tf.compat.v2.config

<br />

Public API for tf.config namespace.

## Modules

[`experimental`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/compat/v2/config/experimental) module: Public API for tf.config.experimental namespace.

[`optimizer`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/compat/v2/config/optimizer) module: Public API for tf.config.optimizer namespace.

[`threading`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/compat/v2/config/threading) module: Public API for tf.config.threading namespace.

## Functions

[`experimental_connect_to_cluster(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_connect_to_cluster): Connects to the given cluster.

[`experimental_connect_to_host(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_connect_to_host): Connects to a single machine to enable remote execution on it.

[`experimental_list_devices(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_list_devices): List the names of the available devices.

[`experimental_run_functions_eagerly(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_run_functions_eagerly): Enables / disables eager execution of [`tf.function`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/function)s.

[`get_soft_device_placement(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/get_soft_device_placement): Get if soft device placement is enabled.

[`set_soft_device_placement(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/set_soft_device_placement): Set if soft device placement is enabled.