【发布时间】:2016-11-28 18:09:38
【问题描述】:
在 Julia Lang 中,文档指出您可以使用 batch_size 设置工作进程的数量:
pmap([::AbstractWorkerPool, ]f, c...; distributed=true, batch_size=1, on_error=nothing, retry_n=0, retry_max_delay=DEFAULT_RETRY_MAX_DELAY, retry_on=DEFAULT_RETRY_ON) → collection
但我似乎找不到如何传递参数的有效示例。
我试过了: pmap(f,x;true,10) 和 pmap(f,x;distributed=true,batch_size=10) 两种方法都不起作用。有谁知道传递 batch_size 参数的正确方法?
【问题讨论】: