threads_info#
- scikitplot.annoy.threads_info()[source]#
Describe what decides the number of threads in this process.
- Returns:
- dict
compiledWhether the compiled module has the multithreaded build.
modeThe mode in effect (
threads_mode).modesEvery mode, the default first.
envThe name of the environment variable that selects the mode.
cpu_countThe number of CPUs
multiuses forn_jobs=-1.
- Raises:
- ValueError
If the environment variable holds something that is not a mode.
- Return type:
Examples
>>> info = threads_info() >>> info["env"], info["modes"] ('SKPLT_ANNOY_THREADS', ('auto', 'single', 'multi'))