public abstract class BaseIndexAccumulation extends BaseOp implements IndexAccumulation
Modifier and Type | Field and Description |
---|---|
protected int |
finalResult |
protected boolean |
keepDims |
protected boolean |
newFormat |
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,
boolean keepDims,
int[] dimensions) |
BaseIndexAccumulation(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2,
boolean keepDims,
int[] dimensions) |
Modifier and Type | Method and Description |
---|---|
List<long[]> |
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
|
Op.Type |
opType()
The type of the op
|
void |
setFinalResult(int idx)
Set the final index/result of the accumulation.
|
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, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, doDiff, dup, f, getNumOutputs, getValue, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxName, onnxNames, opName, opNum, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setPropertiesForFunction, 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
protected int finalResult
protected boolean keepDims
protected boolean newFormat
public BaseIndexAccumulation(SameDiff sameDiff, SDVariable i_v, boolean keepDims, int[] dimensions)
public BaseIndexAccumulation(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, boolean keepDims, 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 void init(INDArray x, INDArray y, INDArray z, long n)
Op
public List<long[]> calculateOutputShape()
DifferentialFunction
calculateOutputShape
in class DifferentialFunction
public Op.Type opType()
DifferentialFunction
opType
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.