public abstract class BaseTransformStrictOp extends BaseTransformOp implements TransformStrictOp
dimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexId
dimensions, extraArgs, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
BaseTransformStrictOp() |
BaseTransformStrictOp(INDArray x) |
BaseTransformStrictOp(INDArray x,
INDArray z) |
BaseTransformStrictOp(SameDiff sameDiff,
SDVariable i_v,
boolean inPlace) |
BaseTransformStrictOp(SameDiff sameDiff,
SDVariable i_v,
long[] shape,
boolean inPlace,
Object[] extraArgs) |
BaseTransformStrictOp(SameDiff sameDiff,
SDVariable i_v,
Object[] extraArgs) |
BaseTransformStrictOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2) |
BaseTransformStrictOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2,
boolean inPlace) |
Modifier and Type | Method and Description |
---|---|
List<DataType> |
calculateOutputDataTypes(List<DataType> dataTypes)
Calculate the data types for the output arrays.
|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
List<LongShapeDescriptor> |
calculateOutputShape(OpContext oc) |
Op.Type |
getOpType() |
Op.Type |
opType()
The type of the op
|
DataType |
resultType()
This method returns datatype for result array wrt given inputs
|
DataType |
resultType(OpContext opContext) |
boolean |
validateDataTypes(OpContext oc,
boolean experimentalMode) |
z
clearArrays, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, onnxName, outputVariables, setX, setY, setZ, tensorflowName, toCustomOp, toString, x, y
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, doDiff, dup, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, opName, opNum, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, z
public BaseTransformStrictOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2)
public BaseTransformStrictOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, boolean inPlace)
public BaseTransformStrictOp(SameDiff sameDiff, SDVariable i_v, boolean inPlace)
public BaseTransformStrictOp(SameDiff sameDiff, SDVariable i_v, long[] shape, boolean inPlace, Object[] extraArgs)
public BaseTransformStrictOp(SameDiff sameDiff, SDVariable i_v, Object[] extraArgs)
public BaseTransformStrictOp()
public BaseTransformStrictOp(INDArray x)
public Op.Type getOpType()
getOpType
in interface TransformOp
public Op.Type opType()
DifferentialFunction
opType
in class DifferentialFunction
public DataType resultType()
TransformOp
resultType
in interface TransformOp
public DataType resultType(OpContext opContext)
resultType
in interface TransformOp
public boolean validateDataTypes(OpContext oc, boolean experimentalMode)
validateDataTypes
in interface TransformOp
public List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunction
calculateOutputShape
in class BaseTransformOp
public List<LongShapeDescriptor> calculateOutputShape(OpContext oc)
calculateOutputShape
in class DifferentialFunction
public List<DataType> calculateOutputDataTypes(List<DataType> dataTypes)
DifferentialFunction
DifferentialFunction.calculateOutputShape()
, this method differs in that it does not
require the input arrays to be populated.
This is important as it allows us to do greedy datatype inference for the entire net - even if arrays are not
available.calculateOutputDataTypes
in class DifferentialFunction
dataTypes
- The data types of the inputsCopyright © 2020. All rights reserved.