Package org.nd4j.linalg.api.ops
Interface ReduceOp
-
- All Superinterfaces:
Op
- All Known Subinterfaces:
LossFunction,ReduceBoolOp,ReduceFloatOp,ReduceLongOp,ReduceSameOp
- All Known Implementing Classes:
All,AMax,AMean,AMin,Any,ASum,BaseReduce3Op,BaseReduceBoolOp,BaseReduceFloatOp,BaseReduceLongOp,BaseReduceOp,BaseReduceSameOp,CosineDistance,CosineSimilarity,CountNonZero,CountZero,Dot,Entropy,EqualsWithEps,EuclideanDistance,HammingDistance,IsInf,IsNaN,JaccardDistance,LogEntropy,ManhattanDistance,MatchCondition,Max,Mean,Min,Norm1,Norm2,NormMax,Prod,ShannonEntropy,SquaredNorm,StandardDeviation,Sum,Variance
public interface ReduceOp extends Op
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description INDArraydimensions()This method returns dimensions for this opNumbergetFinalResult()Op.TypegetOpType()booleanisComplexAccumulation()Deprecated.booleanisKeepDims()This method returns TRUE if we're going to keep axis, FALSE otherwiseINDArraynoOp()Returns the no op version of the input Basically when a reduce can't happen (eg: sum(0) on a row vector) you have a no op state for a given reduction.DataTyperesultType()This method returns datatype for result array wrt given inputsDataTyperesultType(OpContext oc)voidsetDimensions(int... dimensions)booleanvalidateDataTypes(OpContext oc)-
Methods inherited from interface org.nd4j.linalg.api.ops.Op
clearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, z
-
-
-
-
Method Detail
-
noOp
INDArray noOp()
Returns the no op version of the input Basically when a reduce can't happen (eg: sum(0) on a row vector) you have a no op state for a given reduction. For most accumulations, this should return x but certain transformations should return say: the absolute value- Returns:
- the no op version of the input
-
dimensions
INDArray dimensions()
This method returns dimensions for this op- Returns:
-
isComplexAccumulation
@Deprecated boolean isComplexAccumulation()
Deprecated.
-
getOpType
Op.Type getOpType()
-
isKeepDims
boolean isKeepDims()
This method returns TRUE if we're going to keep axis, FALSE otherwise- Returns:
-
resultType
DataType resultType()
This method returns datatype for result array wrt given inputs- Returns:
-
validateDataTypes
boolean validateDataTypes(OpContext oc)
-
getFinalResult
Number getFinalResult()
-
setDimensions
void setDimensions(int... dimensions)
-
-