View source: R/050_ExecutionConfig.R
| setup_SerialExecution | R Documentation |
SerialExecutionConfigExecution in the calling process: nothing is dispatched to a worker. Takes
no n_workers and no future_plan, neither of which a serial run can act
on.
setup_SerialExecution(
n_workers_algorithm = NULL,
device = NULL,
on_error = c("continue", "stop", "stop_outer"),
seed = NULL,
shared_memory = c("auto", "none", "always")
)
n_workers_algorithm |
Optional Integer [1, Inf): Threads for a self-parallelizing algorithm, overriding the automatic assignment. |
device |
Optional |
on_error |
Character {"continue", "stop", "stop_outer"}: Failure policy.
|
seed |
Optional Integer [0, Inf): Master seed for the run's computation RNG,
from which one independent substream per parallel task is derived. Left |
shared_memory |
Character {"none", "auto", "always"}: Whether to hand workers
the training data through OS shared memory instead of serializing a copy to each.
|
n_workers_algorithm still applies: it is threads within the calling
process, not worker processes, so a self-parallelizing algorithm runs
multi-threaded under a serial config.
See setup_FutureExecution for how the run's seed is resolved.
SerialExecutionConfig object.
EDG
setup_SerialExecution()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.