scipy.fft.get_workers

scipy.fft.get_workers()[源代码]

返回当前上下文中的默认工作进程数

示例

>>> from scipy import fft
>>> fft.get_workers()
1
>>> with fft.set_workers(4):
...     fft.get_workers()
4