Class Dot
-
- All Implemented Interfaces:
Op
,ReduceFloatOp
,ReduceOp
public class Dot extends BaseReduce3Op
-
-
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 Dot()
Dot(SameDiff sameDiff, SDVariable i_v, int[] dimensions)
Dot(SameDiff sameDiff, SDVariable i_v, SDVariable dimensions)
Dot(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int... dimensions)
Dot(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, SDVariable dimensions)
Dot(INDArray x, INDArray y, boolean allDistances, int... dimensions)
Dot(INDArray x, INDArray y, int... dimensions)
Dot(INDArray x, INDArray y, INDArray z)
Dot(INDArray x, INDArray y, INDArray z, boolean newFormat, boolean keepDims, int... dimensions)
Dot(INDArray x, INDArray y, INDArray z, boolean keepDims, int... dimensions)
Dot(INDArray x, INDArray y, INDArray z, int... dimensions)
Full array dot product reduction, optionally along specified dimensions.
See wikipedia for details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SDVariable>
doDiff(List<SDVariable> f1)
The actual implementation for automatic differentiation.String
opName()
The name of the opint
opNum()
The number of the op (mainly for old legacy XYZ ops likeOp
)-
Methods inherited from class org.nd4j.linalg.api.ops.impl.reduce3.BaseReduce3Op
calculateOutputDataTypes, getOpType, onnxName, opType, resultType, tensorflowName
-
Methods inherited from class org.nd4j.linalg.api.ops.BaseReduceFloatOp
calculateOutputShape, calculateOutputShape, 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, dimensions, 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
dimensions, getFinalResult, isComplexAccumulation, isKeepDims, noOp, setDimensions
-
-
-
-
Constructor Detail
-
Dot
public Dot(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, int... dimensions)
-
Dot
public Dot(SameDiff sameDiff, SDVariable i_v, SDVariable dimensions)
-
Dot
public Dot(SameDiff sameDiff, SDVariable i_v, SDVariable i_v2, SDVariable dimensions)
-
Dot
public Dot()
-
Dot
public Dot(INDArray x, INDArray y, INDArray z, int... dimensions)
Full array dot product reduction, optionally along specified dimensions.
See wikipedia for details.- Parameters:
x
- input variable.y
- input variable.z
- (optional) place holder for the result. Must have the expected shape.dimensions
- (optional) Dimensions to reduce over. If dimensions are not specified, full array reduction is performed.- See Also:
Transforms.dot(...) for a wrapper around the common use case of 2 INDArrays.
-
Dot
public Dot(INDArray x, INDArray y, INDArray z, boolean newFormat, boolean keepDims, int... dimensions)
-
Dot
public Dot(SameDiff sameDiff, SDVariable i_v, int[] dimensions)
-
-
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> f1)
Description copied from class:DifferentialFunction
The actual implementation for automatic differentiation.- Specified by:
doDiff
in classDifferentialFunction
- Returns:
-
-