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, zVertexId
dimensions, 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, z
arg, 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, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
zeroHalf
exec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, isPassThrough, n, numProcessed, opName, opNum, setExtraArgs, setN, setX, setY, setZ, toCustomOp, x, y, z
public 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()
IndexAccumulation
zeroDouble
in interface IndexAccumulation
public float zeroFloat()
IndexAccumulation
zeroFloat
in interface IndexAccumulation
public org.nd4j.linalg.primitives.Pair<Double,Integer> zeroPair()
IndexAccumulation
zeroPair
in interface IndexAccumulation
public IComplexNumber zeroComplex()
IndexAccumulation
zeroComplex
in interface IndexAccumulation
public void init(INDArray x, INDArray y, INDArray z, long n)
Op
public List<int[]> calculateOutputShape()
DifferentialFunction
calculateOutputShape
in class DifferentialFunction
public void setFinalResult(int idx)
IndexAccumulation
setFinalResult
in interface IndexAccumulation
public int getFinalResult()
IndexAccumulation
getFinalResult
in interface IndexAccumulation
Copyright © 2018. All rights reserved.