from threadpoolctl import threadpool_limits
with threadpool_limits(limits=30, user_api='blas'):
# Creating very large arrays
arr1 = np.random.rand(10000, 10000)
arr2 = np.random.rand(10000, 10000)
# Performing lots of math that should utilize multiple cores
result = np.dot(np.linalg.inv(arr1), arr2)
scvi.settings.num_workers_dn, But we didn't see this work. Maybe it has to do with the order of loading, We still have to figure it out.