public interface OpExecutioner
Modifier and Type | Interface and Description |
---|---|
static class |
OpExecutioner.ExecutionMode |
static class |
OpExecutioner.ProfilingMode |
Modifier and Type | Method and Description |
---|---|
INDArray |
bitmapDecode(INDArray encoded,
INDArray target) |
INDArray |
bitmapEncode(INDArray indArray,
double threshold) |
long |
bitmapEncode(INDArray indArray,
INDArray target,
double threshold)
This method returns number of elements affected by encoder
|
void |
commit()
This method ensures all operations that supposed to be executed at this moment, are executed and finished.
|
INDArray |
exec(Accumulation accumulation,
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 indexAccum,
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
|
String |
getLastOp()
This method returns name of the last invoked op
|
OpExecutioner.ProfilingMode |
getProfilingMode()
Ths method returns current profiling
|
TADManager |
getTADManager()
This method returns TADManager instance used for this OpExecutioner
|
void |
iterateOverAllColumns(Op op)
Iterate over every column of every slice
|
void |
iterateOverAllRows(Op op)
Iterate over every row of every slice
|
void |
printEnvironmentInformation()
This method prints out environmental information returned by getEnvironmentInformation() method
|
void |
push()
This method ensures all operations that supposed to be executed at this moment, are executed.
|
void |
setExecutionMode(OpExecutioner.ExecutionMode executionMode)
Set the execution mode
|
void |
setProfilingMode(OpExecutioner.ProfilingMode mode)
This method specifies desired profiling mode
|
INDArray |
thresholdDecode(INDArray encoded,
INDArray target)
This method decodes thresholds array, and puts it into target array
|
INDArray |
thresholdEncode(INDArray input,
double threshold)
This method encodes array as thresholds, updating input array at the same time
|
INDArray |
thresholdEncode(INDArray input,
double threshold,
Integer boundary)
This method encodes array as thresholds, updating input array at the same time
|
String getLastOp()
void iterateOverAllRows(Op op)
op
- the operation to applyvoid iterateOverAllColumns(Op op)
op
- the operation to applyINDArray execAndReturn(TransformOp op)
op
- the operation to executeAccumulation execAndReturn(Accumulation op)
op
- the operation to executeAccumulation execAndReturn(Variance op, boolean biasCorrected)
op
- the operation to executeIndexAccumulation execAndReturn(IndexAccumulation op)
op
- the index accumulation operation to executeINDArray execAndReturn(ScalarOp op)
op
- the operation to executeINDArray execAndReturn(BroadcastOp op)
op
- Op exec(Op op, int... dimension)
op
- the operation to executeINDArray exec(Accumulation accumulation, int... dimension)
accumulation
- the accumulationdimension
- the dimensionINDArray exec(BroadcastOp broadcast, int... dimension)
broadcast
- the accumulationdimension
- the dimensionINDArray exec(Variance accumulation, boolean biasCorrected, int... dimension)
accumulation
- the accumulationdimension
- the dimensionINDArray exec(IndexAccumulation indexAccum, int... dimension)
indexAccum
- the index accumulation operationdimension
- the dimension/s to execute alongINDArray execAndReturn(Op op)
op
- the operation to executeOpExecutioner.ExecutionMode executionMode()
void setExecutionMode(OpExecutioner.ExecutionMode executionMode)
executionMode
- the execution modevoid exec(MetaOp op)
op
- void exec(GridOp op)
op
- void exec(Aggregate op)
<T extends Aggregate> void exec(Batch<T> batch)
batch
- void exec(List<Aggregate> batch)
batch
- INDArray exec(RandomOp op)
op
- INDArray exec(RandomOp op, Random rng)
op
- rng
- Properties getEnvironmentInformation()
void setProfilingMode(OpExecutioner.ProfilingMode mode)
mode
- OpExecutioner.ProfilingMode getProfilingMode()
TADManager getTADManager()
void printEnvironmentInformation()
void push()
void commit()
INDArray thresholdEncode(INDArray input, double threshold)
input
- INDArray thresholdEncode(INDArray input, double threshold, Integer boundary)
input
- INDArray thresholdDecode(INDArray encoded, INDArray target)
encoded
- target
- long bitmapEncode(INDArray indArray, INDArray target, double threshold)
indArray
- target
- threshold
- Copyright © 2017. All rights reserved.