public class DefaultOpExecutioner extends Object implements OpExecutioner
OpExecutioner.ExecutionMode| Modifier and Type | Field and Description |
|---|---|
protected OpExecutioner.ExecutionMode |
executionMode |
protected TaskFactory |
taskFactory |
| Constructor and Description |
|---|
DefaultOpExecutioner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAccumulationOp(Accumulation op) |
protected void |
doBroadcastOp(BroadcastOp op) |
protected void |
doIndexAccumulationOp(IndexAccumulation op) |
protected void |
doScalarOp(ScalarOp op) |
protected void |
doTransformOp(TransformOp op) |
INDArray |
exec(Accumulation op,
int... dimension)
Execute an accumulation along one or more dimensions
|
INDArray |
exec(IndexAccumulation op,
int... dimension)
Execute an index accumulation along one or more dimensions
|
Op |
exec(Op op)
Execute the operation
|
Op |
exec(Op op,
int... dimension)
Execute the operation along 1 or more dimensions
|
Accumulation |
execAndReturn(Accumulation op)
Execute and return the result from an accumulation
|
INDArray |
execAndReturn(BroadcastOp op)
Execute and return the result from a vector op
|
IndexAccumulation |
execAndReturn(IndexAccumulation op)
Execute and return the result from an index accumulation
|
INDArray |
execAndReturn(Op op)
Execute and return a result
ndarray from the given op
|
INDArray |
execAndReturn(ScalarOp op)
Execute and return the result from a scalar op
|
INDArray |
execAndReturn(ScalarOp op,
int... dimension)
Execute and return the result from an scalar op
|
INDArray |
execAndReturn(TransformOp op)
Execute a TransformOp and return the result
|
INDArray |
execAndReturn(TransformOp op,
int... dimension)
Execute a transform operation along one or more dimensions
|
OpExecutioner.ExecutionMode |
executionMode()
Get the execution mode for this
execuioner
|
void |
iterateOverAllColumns(Op op)
Iterate over every column of every slice
|
void |
iterateOverAllRows(Op op)
Iterate over every row of every slice
|
ParallelExecutioner |
parallelExecutioner() |
void |
setExecutionMode(OpExecutioner.ExecutionMode executionMode)
Set the execution mode
|
protected OpExecutioner.ExecutionMode executionMode
protected TaskFactory taskFactory
public ParallelExecutioner parallelExecutioner()
parallelExecutioner in interface OpExecutionerpublic Op exec(Op op)
OpExecutionerexec in interface OpExecutionerop - the operation to executepublic INDArray execAndReturn(Op op)
OpExecutionerexecAndReturn in interface OpExecutionerop - the operation to executepublic void iterateOverAllRows(Op op)
OpExecutioneriterateOverAllRows in interface OpExecutionerop - the operation to applypublic void iterateOverAllColumns(Op op)
OpExecutioneriterateOverAllColumns in interface OpExecutionerop - the operation to applypublic INDArray execAndReturn(TransformOp op)
OpExecutionerexecAndReturn in interface OpExecutionerop - the operation to executepublic Accumulation execAndReturn(Accumulation op)
OpExecutionerexecAndReturn in interface OpExecutionerop - the operation to executepublic INDArray execAndReturn(ScalarOp op)
OpExecutionerexecAndReturn in interface OpExecutionerop - the operation to executepublic IndexAccumulation execAndReturn(IndexAccumulation op)
OpExecutionerexecAndReturn in interface OpExecutionerop - the index accumulation operation to executepublic INDArray execAndReturn(BroadcastOp op)
OpExecutionerexecAndReturn in interface OpExecutionerpublic Op exec(Op op, int... dimension)
OpExecutionerexec in interface OpExecutionerop - the operation to executepublic INDArray exec(Accumulation op, int... dimension)
OpExecutionerexec in interface OpExecutionerop - the accumulationdimension - the dimensionpublic INDArray exec(IndexAccumulation op, int... dimension)
OpExecutionerexec in interface OpExecutionerop - the index accumulation operationdimension - the dimension/s to execute alongpublic INDArray execAndReturn(TransformOp op, int... dimension)
OpExecutionerexecAndReturn in interface OpExecutionerop - the operation to executepublic INDArray execAndReturn(ScalarOp op, int... dimension)
OpExecutionerexecAndReturn in interface OpExecutionerop - the operation to executepublic OpExecutioner.ExecutionMode executionMode()
OpExecutionerexecutionMode in interface OpExecutionerpublic void setExecutionMode(OpExecutioner.ExecutionMode executionMode)
OpExecutionersetExecutionMode in interface OpExecutionerexecutionMode - the execution modeprotected void doTransformOp(TransformOp op)
protected void doAccumulationOp(Accumulation op)
protected void doScalarOp(ScalarOp op)
protected void doIndexAccumulationOp(IndexAccumulation op)
protected void doBroadcastOp(BroadcastOp op)
Copyright © 2016. All Rights Reserved.