public abstract class BaseTransformAnyOp extends BaseTransformOp implements TransformSameOp
dimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexId
dimensions, extraArgs, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
BaseTransformAnyOp() |
BaseTransformAnyOp(INDArray x) |
BaseTransformAnyOp(INDArray x,
INDArray z) |
BaseTransformAnyOp(INDArray x,
INDArray y,
INDArray z) |
BaseTransformAnyOp(SameDiff sameDiff) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v,
boolean inPlace) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v,
int[] shape,
boolean inPlace,
Object[] extraArgs) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v,
long[] shape,
boolean inPlace,
Object[] extraArgs) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v,
Object[] extraArgs) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2,
boolean inPlace) |
BaseTransformAnyOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2,
Object[] extraArgs) |
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
|
Op.Type |
getOpType() |
Op.Type |
opType()
The type of the op
|
DataType |
resultType()
This method returns datatype for result array wrt given inputs
|
boolean |
validateDataTypes(boolean experimentalMode) |
z
defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, outputVariables, setX, setY, setZ, toCustomOp, toString, x, y
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, doDiff, dup, f, getValue, isConfigProperties, larg, mappingsForFunction, onnxName, onnxNames, opName, opNum, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowName, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
extraArgs, extraArgsBuff, extraArgsDataBuff, opName, opNum, setExtraArgs, setX, setY, setZ, toCustomOp, x, y, z
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2)
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, boolean inPlace)
public BaseTransformAnyOp(SameDiff sameDiff)
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, Object[] extraArgs)
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v, int[] shape, boolean inPlace, Object[] extraArgs)
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v, boolean inPlace)
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v, long[] shape, boolean inPlace, Object[] extraArgs)
public BaseTransformAnyOp(SameDiff sameDiff, SDVariable i_v, Object[] extraArgs)
public BaseTransformAnyOp()
public BaseTransformAnyOp(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 boolean validateDataTypes(boolean experimentalMode)
validateDataTypes
in interface TransformOp
public List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunction
calculateOutputShape
in class BaseTransformOp
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 © 2019. All rights reserved.