extraArgs, extraArgz, n, numProcessed, passThrough, x, xVertexId, y, yVertexId, z, zVertexId
dimensions, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
ShapeOp() |
ShapeOp(INDArray x)
An op for one ndarray
|
ShapeOp(INDArray x,
INDArray z)
Specify an alternative result array
|
ShapeOp(INDArray x,
INDArray y,
INDArray z,
long n) |
ShapeOp(INDArray x,
INDArray z,
long n)
Specify an alternative output array
|
ShapeOp(SameDiff sameDiff) |
ShapeOp(SameDiff sameDiff,
SDVariable i_v,
boolean inPlace) |
ShapeOp(SameDiff sameDiff,
SDVariable i_v,
int[] shape,
boolean inPlace,
Object[] extraArgs) |
Modifier and Type | Method and Description |
---|---|
List<int[]> |
calculateOutputShape()
Calculate
the output shape for this op
|
Op.Type |
opType()
The type of the op
|
equals, exec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, getOpType, hashCode, init, initFromOnnx, initFromTensorFlow, isExecSpecial, isPassThrough, n, numProcessed, outputVariables, setN, setX, setY, setZ, toCustomOp, toString, x, y, z
arg, args, asProperties, attributeAdaptersForFunction, configFieldName, diff, doDiff, dup, f, getValue, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxName, onnxNames, opName, opNum, outputVariables, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowName, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
opName, opNum, setExtraArgs
public ShapeOp()
public ShapeOp(SameDiff sameDiff)
public ShapeOp(SameDiff sameDiff, SDVariable i_v, boolean inPlace)
public ShapeOp(SameDiff sameDiff, SDVariable i_v, int[] shape, boolean inPlace, Object[] extraArgs)
public ShapeOp(INDArray x, INDArray z, long n)
x
- the inputz
- the outputn
- the number of elements to iterate onpublic ShapeOp(INDArray x)
x
- the ndarraypublic List<int[]> calculateOutputShape()
DifferentialFunction
calculateOutputShape
in class DifferentialFunction
public Op.Type opType()
DifferentialFunction
opType
in class DifferentialFunction
Copyright © 2018. All rights reserved.