public abstract class BaseReduce3Op extends BaseReduceFloatOp
dimensionVariable, isComplex, isEmptyReduce, keepDims
dimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexId
dimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue
Constructor and Description |
---|
BaseReduce3Op() |
BaseReduce3Op(INDArray x,
INDArray y,
boolean allDistances,
int... dimensions) |
BaseReduce3Op(INDArray x,
INDArray y,
INDArray z) |
BaseReduce3Op(INDArray x,
INDArray y,
INDArray z,
boolean keepDims,
boolean allDistances,
int... dimensions) |
BaseReduce3Op(INDArray x,
INDArray y,
INDArray z,
boolean keepDims,
int... dimensions) |
BaseReduce3Op(INDArray x,
INDArray y,
INDArray z,
int... dimensions) |
BaseReduce3Op(INDArray x,
INDArray y,
int... dimensions) |
BaseReduce3Op(SameDiff sameDiff,
SDVariable i_v,
int[] dimensions) |
BaseReduce3Op(SameDiff sameDiff,
SDVariable i_v,
SDVariable dimensions) |
BaseReduce3Op(SameDiff sd,
SDVariable x,
SDVariable y,
boolean keepDims,
boolean isComplex,
int[] dimensions) |
BaseReduce3Op(SameDiff sameDiff,
SDVariable i_v,
SDVariable i_v2,
int... dimensions) |
BaseReduce3Op(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.
|
Op.Type |
getOpType() |
String |
onnxName()
The opName of this function in onnx
|
Op.Type |
opType()
The type of the op
|
DataType |
resultType()
This method returns datatype for result array wrt given inputs
|
String |
tensorflowName()
The opName of this function tensorflow
|
calculateOutputShape, calculateOutputShape, resultType, validateDataTypes
configureWithSameDiff, hasReductionIndices, initFromOnnx, initFromTensorFlow, isComplexAccumulation, isKeepDims, noOp, setDimensions, setPropertiesForFunction
clearArrays, computeVariables, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, outputVariables, setX, setY, setZ, toCustomOp, toString, x, y, z
arg, 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, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dimensions, getFinalResult, isComplexAccumulation, isKeepDims, noOp, setDimensions
clearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, z
public BaseReduce3Op(SameDiff sameDiff, SDVariable i_v, int[] dimensions)
public BaseReduce3Op(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int... dimensions)
public BaseReduce3Op(SameDiff sameDiff, SDVariable i_v, SDVariable dimensions)
public BaseReduce3Op(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, SDVariable dimensions)
public BaseReduce3Op()
public BaseReduce3Op(INDArray x, INDArray y, INDArray z, boolean keepDims, int... dimensions)
public BaseReduce3Op(INDArray x, INDArray y, INDArray z, boolean keepDims, boolean allDistances, int... dimensions)
public BaseReduce3Op(SameDiff sd, SDVariable x, SDVariable y, boolean keepDims, boolean isComplex, int[] dimensions)
public Op.Type opType()
DifferentialFunction
opType
in class BaseReduceFloatOp
public Op.Type getOpType()
getOpType
in interface ReduceOp
getOpType
in class BaseReduceFloatOp
public String onnxName()
DifferentialFunction
public String tensorflowName()
DifferentialFunction
tensorflowName
in class BaseOp
public DataType resultType()
ReduceOp
resultType
in interface ReduceOp
resultType
in class BaseReduceFloatOp
public List<DataType> calculateOutputDataTypes(List<DataType> dataTypes)
DifferentialFunction
DifferentialFunction.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 BaseReduceFloatOp
dataTypes
- The data types of the inputsCopyright © 2022. All rights reserved.