<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/framework/config.py#L149-L159) |

Set number of threads used for parallelism between independent operations.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.config.threading.set_inter_op_parallelism_threads`](https://www.tensorflow.org/api_docs/python/tf/config/threading/set_inter_op_parallelism_threads)

<br />

    tf.config.threading.set_inter_op_parallelism_threads(
        num_threads
    )

Determines the number of threads used by independent non-blocking operations.
0 means the system picks an appropriate number.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `num_threads` | Number of parallel threads |

<br />