FastSurferCNN.utils.threads

FastSurferCNN.utils.threads.get_num_threads()[source]

Determine the number of available threads.

Tries to get the process’s CPU affinity for usable thread count; defaults to total CPU count on failure.

Returns:
int

Number of threads available to the process or total CPU count.