LostTech.TensorFlow : API Documentation

Type tf.config.threading

Namespace tensorflow

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

Public properties

PythonFunctionContainer get_inter_op_parallelism_threads_fn get;

PythonFunctionContainer get_intra_op_parallelism_threads_fn get;

PythonFunctionContainer set_inter_op_parallelism_threads_fn get;

PythonFunctionContainer set_intra_op_parallelism_threads_fn get;