<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#L122-L133) |

Set number of threads used within an individual op for parallelism.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.config.threading.set_intra_op_parallelism_threads(
        num_threads
    )

Certain operations like matrix multiplication and reductions can utilize
parallel threads for speed ups. A value of 0 means the system picks an
appropriate number.

<br />

<br />

<br />

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

<br />