public class CPUTaskFactory extends Object implements TaskFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
PARALLEL_THRESHOLD |
protected int |
parallelThreshold |
| Constructor and Description |
|---|
CPUTaskFactory() |
| Modifier and Type | Method and Description |
|---|---|
Task<Double> |
getAccumulationTask(Accumulation op) |
Task<Double> |
getAccumulationTask(Accumulation op,
boolean outerTask) |
Task<INDArray> |
getAccumulationTask(Accumulation op,
int... dimension) |
Task<Void> |
getBroadcastOpAction(BroadcastOp op) |
Task<INDArray> |
getCol2ImTask(INDArray col,
int strideY,
int strideX,
int padHeight,
int padWidth,
int imgHeight,
int imgWidth) |
Task<INDArray> |
getIm2ColTask(INDArray img,
int kernelHeight,
int kernelWidth,
int strideY,
int strideX,
int padHeight,
int padWidth,
boolean coverAll) |
Task<org.apache.commons.math3.util.Pair<Double,Integer>> |
getIndexAccumulationTask(IndexAccumulation op) |
Task<INDArray> |
getIndexAccumulationTask(IndexAccumulation op,
int... dimension) |
int |
getParallelThreshold()
Get the current threshold for parallel execution of tasks
|
Task<Void> |
getScalarAction(ScalarOp op) |
Task<Void> |
getTransformAction(TransformOp op) |
Task<Void> |
getTransformAction(TransformOp op,
int... dimension) |
void |
setParallelThreshold(int threshold)
Set the threshold for breaking up CPU tasks for parallel execution.
|
public static final String PARALLEL_THRESHOLD
protected int parallelThreshold
public void setParallelThreshold(int threshold)
threshold - New threshold to use for parallel executionpublic int getParallelThreshold()
public Task<Void> getTransformAction(TransformOp op)
getTransformAction in interface TaskFactorypublic Task<Void> getTransformAction(TransformOp op, int... dimension)
getTransformAction in interface TaskFactorypublic Task<Void> getScalarAction(ScalarOp op)
getScalarAction in interface TaskFactorypublic Task<Double> getAccumulationTask(Accumulation op, boolean outerTask)
getAccumulationTask in interface TaskFactorypublic Task<Double> getAccumulationTask(Accumulation op)
getAccumulationTask in interface TaskFactorypublic Task<INDArray> getAccumulationTask(Accumulation op, int... dimension)
getAccumulationTask in interface TaskFactorypublic Task<org.apache.commons.math3.util.Pair<Double,Integer>> getIndexAccumulationTask(IndexAccumulation op)
getIndexAccumulationTask in interface TaskFactorypublic Task<INDArray> getIndexAccumulationTask(IndexAccumulation op, int... dimension)
getIndexAccumulationTask in interface TaskFactorypublic Task<Void> getBroadcastOpAction(BroadcastOp op)
getBroadcastOpAction in interface TaskFactorypublic Task<INDArray> getIm2ColTask(INDArray img, int kernelHeight, int kernelWidth, int strideY, int strideX, int padHeight, int padWidth, boolean coverAll)
getIm2ColTask in interface TaskFactorypublic Task<INDArray> getCol2ImTask(INDArray col, int strideY, int strideX, int padHeight, int padWidth, int imgHeight, int imgWidth)
getCol2ImTask in interface TaskFactoryCopyright © 2016. All Rights Reserved.