public abstract class BaseIndexAccumulation extends BaseOp implements IndexAccumulation
| Modifier and Type | Field and Description |
|---|---|
protected int |
finalResult |
extraArgs, extraArgz, n, numProcessed, passThrough, x, xVertexId, y, yVertexId, z, zVertexIddimensions, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
BaseIndexAccumulation() |
BaseIndexAccumulation(INDArray x) |
BaseIndexAccumulation(INDArray x,
INDArray y) |
BaseIndexAccumulation(INDArray x,
INDArray y,
INDArray z,
long n)
Initialize with the given
input, pairwise transform, result, and number
of elements
|
BaseIndexAccumulation(INDArray x,
INDArray y,
long n) |
BaseIndexAccumulation(SameDiff sameDiff,
SDVariable i_v,
int[] dimensions) |
BaseIndexAccumulation(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2,
int[] dimensions) |
| Modifier and Type | Method and Description |
|---|---|
List<int[]> |
calculateOutputShape()
Calculate
the output shape for this op
|
int |
getFinalResult()
Get the final result of the IndexAccumulation
|
void |
init(INDArray x,
INDArray y,
INDArray z,
long n)
Initialize the operation based on the parameters
|
void |
setFinalResult(int idx)
Set the final index/result of the accumulation.
|
IComplexNumber |
zeroComplex()
Complex initial value
|
double |
zeroDouble()
Initial value for the index accumulation
|
float |
zeroFloat()
Initial value for the index accumulation.
|
org.nd4j.linalg.primitives.Pair<Double,Integer> |
zeroPair()
The initial value and initial index to use
for the accumulation
|
equals, exec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, getOpType, hashCode, initFromOnnx, initFromTensorFlow, isExecSpecial, isPassThrough, n, numProcessed, outputVariables, setN, setX, setY, setZ, toCustomOp, toString, x, y, zarg, args, asProperties, attributeAdaptersForFunction, configFieldName, diff, doDiff, dup, f, getValue, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxName, onnxNames, opName, opNum, opType, outputVariables, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowName, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitzeroHalfexec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, isPassThrough, n, numProcessed, opName, opNum, setExtraArgs, setN, setX, setY, setZ, toCustomOp, x, y, zpublic BaseIndexAccumulation(SameDiff sameDiff, SDVariable i_v, int[] dimensions)
public BaseIndexAccumulation(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions)
public BaseIndexAccumulation()
public BaseIndexAccumulation(INDArray x, INDArray y, INDArray z, long n)
x - the inputy - the pairwise transformz - the resultn - the number of elementspublic BaseIndexAccumulation(INDArray x)
public double zeroDouble()
IndexAccumulationzeroDouble in interface IndexAccumulationpublic float zeroFloat()
IndexAccumulationzeroFloat in interface IndexAccumulationpublic org.nd4j.linalg.primitives.Pair<Double,Integer> zeroPair()
IndexAccumulationzeroPair in interface IndexAccumulationpublic IComplexNumber zeroComplex()
IndexAccumulationzeroComplex in interface IndexAccumulationpublic void init(INDArray x, INDArray y, INDArray z, long n)
Oppublic List<int[]> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class DifferentialFunctionpublic void setFinalResult(int idx)
IndexAccumulationsetFinalResult in interface IndexAccumulationpublic int getFinalResult()
IndexAccumulationgetFinalResult in interface IndexAccumulationCopyright © 2018. All rights reserved.