public class CPUIndexAccumulationTask extends BaseCPUIndexAccumulationTask
| Modifier and Type | Field and Description |
|---|---|
protected List<Task<org.apache.commons.math3.util.Pair<Double,Integer>>> |
subTasks |
elementOffset, op, outerTask| Constructor and Description |
|---|
CPUIndexAccumulationTask(IndexAccumulation op,
int threshold,
boolean outerTask)
Constructor for doing task on entire NDArray
|
CPUIndexAccumulationTask(IndexAccumulation op,
int threshold,
int tadIdx,
int tadDim,
boolean outerTask)
Constructor for doing a 1d tensor first
|
CPUIndexAccumulationTask(IndexAccumulation op,
int threshold,
int n,
int offsetX,
int offsetY,
int incrX,
int incrY,
int elementOffset,
boolean outerTask)
Constructor for operating on subset of NDArray
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.math3.util.Pair<Double,Integer> |
blockUntilComplete()
Assuming invokeAsync() has been called, block until the execution completes
|
org.apache.commons.math3.util.Pair<Double,Integer> |
call()
Compute the result immediately, in the current thread
|
protected org.apache.commons.math3.util.Pair<Double,Integer> |
compute() |
doTensorFirst, invokeAsync, invokeBlockingexec, getRawResult, setRawResultadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkpublic CPUIndexAccumulationTask(IndexAccumulation op, int threshold, int n, int offsetX, int offsetY, int incrX, int incrY, int elementOffset, boolean outerTask)
public CPUIndexAccumulationTask(IndexAccumulation op, int threshold, boolean outerTask)
public CPUIndexAccumulationTask(IndexAccumulation op, int threshold, int tadIdx, int tadDim, boolean outerTask)
public org.apache.commons.math3.util.Pair<Double,Integer> blockUntilComplete()
Taskpublic org.apache.commons.math3.util.Pair<Double,Integer> call()
TaskCopyright © 2016. All Rights Reserved.