public class CPUAccumulationTask extends BaseCPUAccumulationTask
| Modifier and Type | Field and Description |
|---|---|
protected List<Task<Double>> |
subTasks |
op, outerTask| Constructor and Description |
|---|
CPUAccumulationTask(Accumulation op,
int threshold,
boolean outerTask)
Constructor for doing task on entire NDArray
|
CPUAccumulationTask(Accumulation op,
int threshold,
int tadIdx,
int tadDim,
boolean outerTask)
Constructor for doing a 1d tensor first
|
CPUAccumulationTask(Accumulation op,
int threshold,
int n,
int offsetX,
int offsetY,
int incrX,
int incrY,
boolean outerTask)
Constructor for operating on subset of NDArray
|
| Modifier and Type | Method and Description |
|---|---|
Double |
blockUntilComplete()
Assuming invokeAsync() has been called, block until the execution completes
|
Double |
call()
Compute the result immediately, in the current thread
|
Double |
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 CPUAccumulationTask(Accumulation op, int threshold, int n, int offsetX, int offsetY, int incrX, int incrY, boolean outerTask)
public CPUAccumulationTask(Accumulation op, int threshold, boolean outerTask)
public CPUAccumulationTask(Accumulation op, int threshold, int tadIdx, int tadDim, boolean outerTask)
Copyright © 2016. All Rights Reserved.