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 |
checkForCompression(Op op) |
INDArray |
exec(Accumulation op,
int... dimension)
Execute an accumulation along one or more dimensions
|
void |
exec(Aggregate op) |
<T extends Aggregate> |
exec(Batch<T> batch)
This method executes previously built batch
|
INDArray |
exec(BroadcastOp broadcast,
int... dimension)
Execute an broadcast along one or more dimensions
|
void |
exec(GridOp op)
Execute GridOp
|
INDArray |
exec(IndexAccumulation op,
int... dimension)
Execute an index accumulation along one or more dimensions
|
void |
exec(List<Aggregate> batch)
This method takes abritrary sized list of aggregates, and packs them into batches
|
void |
exec(MetaOp op)
Execute MetaOp
|
Op |
exec(Op op)
Execute the operation
|
Op |
exec(Op op,
int... dimension)
Execute the operation along 1 or more dimensions
|
INDArray |
exec(RandomOp op)
This method executes specified RandomOp using default RNG available via Nd4j.getRandom()
|
INDArray |
exec(RandomOp op,
Random rng)
This method executes specific RandomOp against specified RNG
|
INDArray |
exec(Variance accumulation,
boolean biasCorrected,
int... dimension)
Execute an accumulation along one 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(TransformOp op)
Execute a TransformOp and return the result
|
Accumulation |
execAndReturn(Variance op,
boolean biasCorrected)
Execute and return the result from an accumulation
|
OpExecutioner.ExecutionMode |
executionMode()
Get the execution mode for this
execuioner
|
Properties |
getEnvironmentInformation()
This method return set of key/value and key/key/value objects, describing current environment
|
protected void |
interceptIntDataType(Op op)
This method checks if any Op operand has data type of INT, and throws exception if any.
|
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
protected void checkForCompression(Op op)
protected void interceptIntDataType(Op op)
op
- 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 Accumulation execAndReturn(Variance op, boolean biasCorrected)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic INDArray execAndReturn(ScalarOp op)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the operation to executepublic IndexAccumulation execAndReturn(IndexAccumulation op)
OpExecutioner
execAndReturn
in interface OpExecutioner
op
- the index accumulation operation to executepublic INDArray execAndReturn(BroadcastOp op)
OpExecutioner
execAndReturn
in interface OpExecutioner
public Op exec(Op op, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
op
- the operation to executepublic INDArray exec(Accumulation op, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
op
- the accumulationdimension
- the dimensionpublic INDArray exec(Variance accumulation, boolean biasCorrected, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
accumulation
- the accumulationdimension
- the dimensionpublic INDArray exec(IndexAccumulation op, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
op
- the index accumulation operationdimension
- the dimension/s to execute alongpublic OpExecutioner.ExecutionMode executionMode()
OpExecutioner
executionMode
in interface OpExecutioner
public void setExecutionMode(OpExecutioner.ExecutionMode executionMode)
OpExecutioner
setExecutionMode
in interface OpExecutioner
executionMode
- the execution modepublic INDArray exec(BroadcastOp broadcast, int... dimension)
OpExecutioner
exec
in interface OpExecutioner
broadcast
- the accumulationdimension
- the dimensionpublic void exec(MetaOp op)
OpExecutioner
exec
in interface OpExecutioner
public void exec(GridOp op)
OpExecutioner
exec
in interface OpExecutioner
public Properties getEnvironmentInformation()
getEnvironmentInformation
in interface OpExecutioner
public <T extends Aggregate> void exec(Batch<T> batch)
OpExecutioner
exec
in interface OpExecutioner
public void exec(Aggregate op)
exec
in interface OpExecutioner
public void exec(List<Aggregate> batch)
OpExecutioner
exec
in interface OpExecutioner
public INDArray exec(RandomOp op)
exec
in interface OpExecutioner
op
- public INDArray exec(RandomOp op, Random rng)
exec
in interface OpExecutioner
op
- rng
- Copyright © 2016. All Rights Reserved.