Package org.nd4j.linalg.api.ops
Class BaseTransformOp
- java.lang.Object
-
- org.nd4j.autodiff.functions.DifferentialFunction
-
- org.nd4j.linalg.api.ops.BaseOp
-
- org.nd4j.linalg.api.ops.BaseTransformOp
-
- All Implemented Interfaces:
Op
,TransformOp
- Direct Known Subclasses:
BaseTransformAnyOp
,BaseTransformBoolOp
,BaseTransformFloatOp
,BaseTransformSameOp
,BaseTransformStrictOp
,MaxOut
public abstract class BaseTransformOp extends BaseOp implements TransformOp
-
-
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 BaseTransformOp()
BaseTransformOp(SameDiff sameDiff)
BaseTransformOp(SameDiff sameDiff, SDVariable i_v, boolean inPlace)
BaseTransformOp(SameDiff sameDiff, SDVariable i_v, long[] shape, boolean inPlace, Object[] extraArgs)
BaseTransformOp(SameDiff sameDiff, SDVariable i_v, Object[] extraArgs)
BaseTransformOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2)
BaseTransformOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, boolean inPlace)
BaseTransformOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, Object[] extraArgs)
BaseTransformOp(INDArray x)
BaseTransformOp(INDArray x, INDArray z)
BaseTransformOp(INDArray x, INDArray y, INDArray z)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<LongShapeDescriptor>
calculateOutputShape()
Calculate the output shape for this opINDArray
z()
The resulting ndarray-
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, onnxName, outputVariables, setX, setY, setZ, tensorflowName, toCustomOp, toString, x, y
-
Methods inherited from class org.nd4j.autodiff.functions.DifferentialFunction
arg, arg, argNames, args, attributeAdaptersForFunction, calculateOutputDataTypes, calculateOutputShape, configFieldName, configureWithSameDiff, diff, doDiff, dup, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getStringFromProperty, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, opName, opNum, opType, 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, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y
-
Methods inherited from interface org.nd4j.linalg.api.ops.TransformOp
getOpType, resultType, resultType, validateDataTypes
-
-
-
-
Constructor Detail
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2)
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, boolean inPlace)
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff)
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, Object[] extraArgs)
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff, SDVariable i_v, boolean inPlace)
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff, SDVariable i_v, long[] shape, boolean inPlace, Object[] extraArgs)
-
BaseTransformOp
public BaseTransformOp(SameDiff sameDiff, SDVariable i_v, Object[] extraArgs)
-
BaseTransformOp
public BaseTransformOp()
-
BaseTransformOp
public BaseTransformOp(INDArray x)
-
-
Method Detail
-
calculateOutputShape
public abstract List<LongShapeDescriptor> calculateOutputShape()
Description copied from class:DifferentialFunction
Calculate the output shape for this op- Overrides:
calculateOutputShape
in classDifferentialFunction
- Returns:
- List of output shape descriptors
-
-