Interface | Description |
---|---|
Task<V> |
A Task implements/defines the method of execution of an Op
An Op defines what is to be done
A Task defines how that op is executed (for example, it might be split up and parallelized)
A task also has methods for blockind and non-blocking (asynchronous) execution.
|
TaskExecutor | |
TaskFactory |
A TaskFactory provides Task objects for each type of Op
|
Class | Description |
---|---|
BaseTask<V> | |
DefaultTaskExecutor |
Default TaskExecutor based on a
(a) ForkJoinPool (for CPU tasks that are ForkJoin RecursiveTask/RecursiveAction, for example)
(b) ThreadPoolExecutor (for all other tasks)
number of threads set to the number of processor (cores) by default, as per the
Runtime.getRuntime().availableProcessors() method
Otherwise, set number of threads using "org.nd4j.parallel.cpu.taskexecutorthreads" system property
|
TaskExecutorProvider |
Simple class to provide access to a TaskExecutor instance
|
TaskFactoryProvider |
Provides the default TaskFactory class name for a given Nd4jBackend
|
Copyright © 2015. All Rights Reserved.