public abstract class BaseReduceSameOp extends BaseReduceOp implements ReduceSameOp
dimensionVariable, isComplex, isEmptyReduce, keepDimsdimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexIddimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Modifier | Constructor and Description |
|---|---|
protected |
BaseReduceSameOp() |
|
BaseReduceSameOp(INDArray x,
boolean keepDims,
int... dimensions) |
|
BaseReduceSameOp(INDArray x,
INDArray z,
boolean keepDims,
int[] dimensions) |
|
BaseReduceSameOp(INDArray x,
INDArray y,
INDArray z,
boolean keepDims,
int[] dimensions) |
|
BaseReduceSameOp(INDArray x,
INDArray y,
INDArray z,
int... dimensions) |
|
BaseReduceSameOp(INDArray x,
INDArray y,
int... dimensions) |
|
BaseReduceSameOp(INDArray x,
int... dimensions) |
|
BaseReduceSameOp(SameDiff sameDiff) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v,
boolean keepDims) |
protected |
BaseReduceSameOp(SameDiff sameDiff,
SDVariable input,
int... dimensions) |
protected |
BaseReduceSameOp(SameDiff sameDiff,
SDVariable input,
int[] dimensions,
boolean keepDims) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v,
SDVariable dimensions,
boolean keepDims) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2,
int[] dimensions) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2,
int[] dimensions,
boolean keepDims) |
|
BaseReduceSameOp(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2,
SDVariable dimensions) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
calculateOutputDataTypes(List<DataType> dataTypes)
Calculate the data types for the output arrays.
|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
List<LongShapeDescriptor> |
calculateOutputShape(OpContext oc) |
INDArray |
dimensions()
This method returns dimensions for this op
|
Op.Type |
getOpType() |
Op.Type |
opType()
The type of the op
|
DataType |
resultType()
This method returns datatype for result array wrt given inputs
|
DataType |
resultType(OpContext oc) |
boolean |
validateDataTypes(OpContext oc) |
configureWithSameDiff, hasReductionIndices, initFromOnnx, initFromTensorFlow, isComplexAccumulation, isKeepDims, noOp, setDimensions, setPropertiesForFunctionclearArrays, computeVariables, defineDimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, onnxName, outputVariables, setX, setY, setZ, tensorflowName, toCustomOp, toString, x, y, zarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, doDiff, dup, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getStringFromProperty, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, opName, opNum, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFinalResult, isComplexAccumulation, isKeepDims, noOp, setDimensionsclearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, zpublic BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions)
public BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v, boolean keepDims)
public BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v, SDVariable dimensions, boolean keepDims)
public BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2)
protected BaseReduceSameOp(SameDiff sameDiff, SDVariable input, int[] dimensions, boolean keepDims)
public BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions, boolean keepDims)
public BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v)
protected BaseReduceSameOp(SameDiff sameDiff, SDVariable input, int... dimensions)
public BaseReduceSameOp(INDArray x, INDArray z, boolean keepDims, int[] dimensions)
public BaseReduceSameOp(SameDiff sameDiff)
public BaseReduceSameOp(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, SDVariable dimensions)
public BaseReduceSameOp(INDArray x, int... dimensions)
public BaseReduceSameOp(INDArray x, boolean keepDims, int... dimensions)
protected BaseReduceSameOp()
public Op.Type opType()
DifferentialFunctionopType in class DifferentialFunctionpublic DataType resultType()
ReduceOpresultType in interface ReduceOppublic DataType resultType(OpContext oc)
resultType in interface ReduceOppublic boolean validateDataTypes(OpContext oc)
validateDataTypes in interface ReduceOppublic INDArray dimensions()
ReduceOpdimensions in interface ReduceOpdimensions in class BaseOppublic List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class BaseReduceOppublic List<LongShapeDescriptor> calculateOutputShape(OpContext oc)
calculateOutputShape in class DifferentialFunctionpublic List<DataType> calculateOutputDataTypes(List<DataType> dataTypes)
DifferentialFunctionDifferentialFunction.calculateOutputShape(), this method differs in that it does not
require the input arrays to be populated.
This is important as it allows us to do greedy datatype inference for the entire net - even if arrays are not
available.calculateOutputDataTypes in class DifferentialFunctiondataTypes - The data types of the inputsCopyright © 2022. All rights reserved.