Class ScalarEps
- java.lang.Object
-
- org.nd4j.autodiff.functions.DifferentialFunction
-
- org.nd4j.linalg.api.ops.BaseOp
-
- org.nd4j.linalg.api.ops.BaseScalarBoolOp
-
- org.nd4j.linalg.api.ops.impl.scalar.comparison.ScalarEps
-
public class ScalarEps extends BaseScalarBoolOp
Return a binary (0 or 1) when greater than a number- Author:
- Adam Gibson
-
-
Field Summary
-
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 ScalarEps()ScalarEps(SameDiff sameDiff, SDVariable i_v, Number scalar)ScalarEps(SameDiff sameDiff, SDVariable i_v, Number scalar, boolean inPlace)ScalarEps(INDArray x)ScalarEps(INDArray x, Number num)ScalarEps(INDArray x, INDArray z, Number num)
-
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.int[]getDimension()StringonnxName()The opName of this function in onnxStringopName()The name of the opintopNum()The number of the op (mainly for old legacy XYZ ops likeOp)voidsetDimension(int... dimension)-
Methods inherited from class org.nd4j.linalg.api.ops.BaseScalarBoolOp
calculateOutputDataTypes, calculateOutputShape, calculateOutputShape, getOpType, opType, scalar, setScalar, setScalar, validateDataTypes, z
-
Methods inherited from class org.nd4j.linalg.api.ops.BaseOp
clearArrays, computeVariables, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, outputVariables, setX, setY, setZ, tensorflowName, toCustomOp, toString, x, y
-
Methods inherited from class org.nd4j.autodiff.functions.DifferentialFunction
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, configureWithSameDiff, diff, dup, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getStringFromProperty, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, 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
-
Methods inherited from interface org.nd4j.linalg.api.ops.ScalarOp
dimensions
-
-
-
-
Constructor Detail
-
ScalarEps
public ScalarEps()
-
ScalarEps
public ScalarEps(INDArray x)
-
ScalarEps
public ScalarEps(SameDiff sameDiff, SDVariable i_v, Number scalar)
-
ScalarEps
public ScalarEps(SameDiff sameDiff, SDVariable i_v, Number scalar, boolean inPlace)
-
-
Method Detail
-
opNum
public int opNum()
Description copied from class:DifferentialFunctionThe number of the op (mainly for old legacy XYZ ops likeOp)- Specified by:
opNumin interfaceOp- Overrides:
opNumin classDifferentialFunction- Returns:
-
opName
public String opName()
Description copied from class:DifferentialFunctionThe name of the op- Specified by:
opNamein interfaceOp- Overrides:
opNamein classDifferentialFunction- Returns:
- the opName of this operation
-
getDimension
public int[] getDimension()
- Specified by:
getDimensionin interfaceScalarOp- Overrides:
getDimensionin classBaseScalarBoolOp
-
setDimension
public void setDimension(int... dimension)
- Specified by:
setDimensionin interfaceScalarOp- Overrides:
setDimensionin classBaseScalarBoolOp
-
doDiff
public List<SDVariable> doDiff(List<SDVariable> f1)
Description copied from class:DifferentialFunctionThe actual implementation for automatic differentiation.- Specified by:
doDiffin classDifferentialFunction- Returns:
-
onnxName
public String onnxName()
Description copied from class:DifferentialFunctionThe opName of this function in onnx
-
-