MCPcopy Create free account
hub / github.com/scikit-learn/scikit-learn / _get_threadpool_controller

Function _get_threadpool_controller

sklearn/utils/parallel.py:187–194  ·  view source on GitHub ↗

Return the global threadpool controller instance.

()

Source from the content-addressed store, hash-verified

185
186
187def _get_threadpool_controller():
188 """Return the global threadpool controller instance."""
189 global _threadpool_controller
190
191 if _threadpool_controller is None:
192 _threadpool_controller = ThreadpoolController()
193
194 return _threadpool_controller
195
196
197def _threadpool_controller_decorator(limits=1, user_api="blas"):

Callers 7

_check_mkl_vcompMethod · 0.90
fitMethod · 0.90
partial_fitMethod · 0.90
wrapperFunction · 0.85

Calls

no outgoing calls

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…