# tf.config.threading.set_intra_op_parallelism_threads

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/config/threading/set_intra_op_parallelism_threads) | [![](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/config.py#L39-L50) |

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), \`tf.compat.v2.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 />