Type tf.config.threading
Namespace tensorflow
Methods
- get_inter_op_parallelism_threads
- get_inter_op_parallelism_threads_dyn
- get_intra_op_parallelism_threads
- get_intra_op_parallelism_threads_dyn
- set_inter_op_parallelism_threads
- set_inter_op_parallelism_threads_dyn
- set_intra_op_parallelism_threads
- set_intra_op_parallelism_threads_dyn
Properties
Public static methods
int get_inter_op_parallelism_threads()
Get number of threads used for parallelism between independent operations. Determines the number of threads used by independent non-blocking operations.
0 means the system picks an appropriate number.
Returns
-
int
- Number of parallel threads
object get_inter_op_parallelism_threads_dyn()
Get number of threads used for parallelism between independent operations. Determines the number of threads used by independent non-blocking operations.
0 means the system picks an appropriate number.
Returns
-
object
- Number of parallel threads
int get_intra_op_parallelism_threads()
Get number of threads used within an individual op for parallelism. 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.
Returns
-
int
- Number of parallel threads
object get_intra_op_parallelism_threads_dyn()
Get number of threads used within an individual op for parallelism. 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.
Returns
-
object
- Number of parallel threads
void set_inter_op_parallelism_threads(int num_threads)
Set number of threads used for parallelism between independent operations. Determines the number of threads used by independent non-blocking operations.
0 means the system picks an appropriate number.
Parameters
-
int
num_threads - Number of parallel threads
object set_inter_op_parallelism_threads_dyn(object num_threads)
Set number of threads used for parallelism between independent operations. Determines the number of threads used by independent non-blocking operations.
0 means the system picks an appropriate number.
Parameters
-
object
num_threads - Number of parallel threads
void set_intra_op_parallelism_threads(int num_threads)
Set number of threads used within an individual op for parallelism. 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.
Parameters
-
int
num_threads - Number of parallel threads
object set_intra_op_parallelism_threads_dyn(object num_threads)
Set number of threads used within an individual op for parallelism. 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.
Parameters
-
object
num_threads - Number of parallel threads