lenskit.parallel.NestedPool#
- class lenskit.parallel.NestedPool(*, n_threads=None)#
Context manager to run accelerator tasks in separate accelerator pools.
- Stability:
- Internal (see Stability Levels).
- Parameters:
n_threads (int | None)
- static active_accel_pool()#
- Return type:
lenskit._accel.NestedAccelPool | None
- __enter__()#
- __exit__(exc_type, exc_val, exc_tb)#