Class Max
- java.lang.Object
-
- org.nd4j.autodiff.functions.DifferentialFunction
-
- org.nd4j.linalg.api.ops.BaseOp
-
- org.nd4j.linalg.api.ops.BaseReduceOp
-
- org.nd4j.linalg.api.ops.BaseReduceSameOp
-
- org.nd4j.linalg.api.ops.impl.reduce.same.Max
-
- All Implemented Interfaces:
Op
,ReduceOp
,ReduceSameOp
public class Max extends BaseReduceSameOp
-
-
Field Summary
-
Fields inherited from class org.nd4j.linalg.api.ops.BaseReduceOp
dimensionVariable, isComplex, isEmptyReduce, keepDims
-
Fields inherited from class org.nd4j.linalg.api.ops.BaseOp
dimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexId
-
Fields inherited from class org.nd4j.autodiff.functions.DifferentialFunction
dimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue
-
-
Constructor Summary
Constructors Constructor Description Max()
Max(SameDiff sameDiff)
Max(SameDiff sameDiff, SDVariable i_v)
Max(SameDiff sameDiff, SDVariable i_v, boolean keepDims)
Max(SameDiff sameDiff, SDVariable i_v, boolean keepDims, int[] dimensions)
Max(SameDiff sameDiff, SDVariable input, int... dimensions)
Max(SameDiff sameDiff, SDVariable input, int[] dimensions, boolean keepDims)
Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2)
Max(SameDiff sameDiff, SDVariable i_v, SDVariable dimensions, boolean keepDims)
Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions)
Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions, boolean keepDims)
Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, SDVariable dimensions)
Max(INDArray x, boolean keepDims, int... axis)
Max(INDArray x, int... axis)
Initialize with the given input, pairwise transform, result, and number of elementsMax(INDArray in, int[] dimensions, boolean keepDims)
Max(INDArray x, INDArray z, boolean keepDims, int... dimensions)
Max(INDArray x, INDArray z, int... axis)
Max(INDArray x, INDArray y, INDArray z, boolean keepDims, int[] dimensions)
Max(INDArray x, INDArray y, INDArray z, int... dimensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SDVariable>
doDiff(List<SDVariable> grad)
The actual implementation for automatic differentiation.String
onnxName()
The opName of this function in onnxString
opName()
The name of the opint
opNum()
The number of the op (mainly for old legacy XYZ ops likeOp
)String
tensorflowName()
The opName of this function tensorflow-
Methods inherited from class org.nd4j.linalg.api.ops.BaseReduceSameOp
calculateOutputDataTypes, calculateOutputShape, calculateOutputShape, dimensions, getOpType, opType, resultType, resultType, validateDataTypes
-
Methods inherited from class org.nd4j.linalg.api.ops.BaseReduceOp
configureWithSameDiff, hasReductionIndices, initFromOnnx, initFromTensorFlow, isComplexAccumulation, isKeepDims, noOp, setDimensions, setPropertiesForFunction
-
Methods inherited from class org.nd4j.linalg.api.ops.BaseOp
clearArrays, computeVariables, defineDimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, outputVariables, setX, setY, setZ, toCustomOp, toString, x, y, z
-
Methods inherited from class org.nd4j.autodiff.functions.DifferentialFunction
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getStringFromProperty, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setValueFor, tensorflowNames
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nd4j.linalg.api.ops.Op
clearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, z
-
Methods inherited from interface org.nd4j.linalg.api.ops.ReduceOp
getFinalResult, isComplexAccumulation, isKeepDims, noOp, setDimensions
-
-
-
-
Constructor Detail
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, boolean keepDims, int[] dimensions)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, boolean keepDims)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, SDVariable dimensions, boolean keepDims)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2)
-
Max
public Max(SameDiff sameDiff, SDVariable input, int[] dimensions, boolean keepDims)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int[] dimensions, boolean keepDims)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v)
-
Max
public Max(SameDiff sameDiff, SDVariable input, int... dimensions)
-
Max
public Max()
-
Max
public Max(INDArray x, int... axis)
Initialize with the given input, pairwise transform, result, and number of elements- Parameters:
x
- the inputy
- the pairwise transformz
- the resultn
- the number of elements
-
Max
public Max(INDArray x, boolean keepDims, int... axis)
-
Max
public Max(SameDiff sameDiff)
-
Max
public Max(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, SDVariable dimensions)
-
Max
public Max(INDArray in, int[] dimensions, boolean keepDims)
-
-
Method Detail
-
opNum
public int opNum()
Description copied from class:DifferentialFunction
The number of the op (mainly for old legacy XYZ ops likeOp
)- Specified by:
opNum
in interfaceOp
- Overrides:
opNum
in classDifferentialFunction
- Returns:
-
opName
public String opName()
Description copied from class:DifferentialFunction
The name of the op- Specified by:
opName
in interfaceOp
- Overrides:
opName
in classDifferentialFunction
- Returns:
- the opName of this operation
-
doDiff
public List<SDVariable> doDiff(List<SDVariable> grad)
Description copied from class:DifferentialFunction
The actual implementation for automatic differentiation.- Specified by:
doDiff
in classDifferentialFunction
- Returns:
-
onnxName
public String onnxName()
Description copied from class:DifferentialFunction
The opName of this function in onnx
-
tensorflowName
public String tensorflowName()
Description copied from class:DifferentialFunction
The opName of this function tensorflow- Overrides:
tensorflowName
in classBaseOp
- Returns:
-
-