public class DefaultOpExecutioner extends Object implements OpExecutioner
OpExecutioner.ExecutionMode
Modifier and Type | Field and Description |
---|---|
protected OpExecutioner.ExecutionMode |
executionMode |
Constructor and Description |
---|
DefaultOpExecutioner() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkOp(Op op) |
INDArray |
exec(Accumulation op,
int... dimension)
Execute an accumulation along a dimension
|
Op |
exec(Op op)
Execute the operation
|
Op |
exec(Op op,
int... dimension)
Execute the operation
|
protected Op |
exec(Op op,
int dimension) |
Accumulation |
execAndReturn(Accumulation op)
Execute and return the result from an 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 an accumulation
|
INDArray |
execAndReturn(ScalarOp op,
int... dimension)
Execute and return the result from an accumulation
|
INDArray |
execAndReturn(TransformOp op)
Execute the operation
|
INDArray |
execAndReturn(TransformOp op,
int... dimension)
Execute the operation
|
protected INDArray |
execAndReturnVector(TransformOp op,
int dimension) |
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
|
void |
setExecutionMode(OpExecutioner.ExecutionMode executionMode)
Set the execution mode
|
protected OpExecutioner.ExecutionMode executionMode
public Op exec(Op op)
OpExecutioner
exec
in interface OpExecutioner
op
- the operation to executepublic INDArray execAndReturn(Op op)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic void iterateOverAllRows(Op op)
OpExecutioner
iterateOverAllRows
in interface OpExecutioner
op
- the operation to applypublic void iterateOverAllColumns(Op op)
OpExecutioner
iterateOverAllColumns
in interface OpExecutioner
op
- the operation to applypublic INDArray execAndReturn(TransformOp op)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic Accumulation execAndReturn(Accumulation op)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic INDArray execAndReturn(ScalarOp op)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic Op exec(Op op, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
op
- the operation to executeprotected void checkOp(Op op)
public INDArray exec(Accumulation op, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
op
- the accumulationdimension
- the dimensionpublic INDArray execAndReturn(TransformOp op, int... dimension)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executeprotected INDArray execAndReturnVector(TransformOp op, int dimension)
public INDArray execAndReturn(ScalarOp op, int... dimension)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic OpExecutioner.ExecutionMode executionMode()
OpExecutioner
executionMode
in interface OpExecutioner
public void setExecutionMode(OpExecutioner.ExecutionMode executionMode)
OpExecutioner
setExecutionMode
in interface OpExecutioner
executionMode
- the execution modeCopyright © 2015. All Rights Reserved.