public abstract class BaseGradientOp extends BaseTransformOp implements GradientOp
extraArgs, extraArgz, n, numProcessed, passThrough, x, xVertexId, y, yVertexId, z, zVertexId
dimensions, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
BaseGradientOp() |
BaseGradientOp(INDArray x) |
BaseGradientOp(INDArray x,
INDArray z) |
BaseGradientOp(INDArray x,
INDArray y,
INDArray z,
long n) |
BaseGradientOp(INDArray x,
INDArray z,
long n) |
BaseGradientOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2) |
BaseGradientOp(SameDiff sameDiff,
SDVariable i_v1,
SDVariable i_v2,
boolean inPlace) |
Modifier and Type | Method and Description |
---|---|
boolean |
isExecSpecial()
Whether the executioner
needs to do a special call or not
|
boolean |
isPassThrough()
Returns whether the op should be executed or not (through the executioner)
|
INDArray |
wrt()
The array
to the gradient with respect to
|
calculateOutputShape, opType, z
equals, exec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, getOpType, hashCode, init, initFromOnnx, initFromTensorFlow, n, numProcessed, outputVariables, setN, setX, setY, setZ, toCustomOp, toString, x, y
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
exec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, init, n, numProcessed, opName, opNum, setExtraArgs, setN, setX, setY, setZ, toCustomOp, x, y, z
public BaseGradientOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2)
public BaseGradientOp(SameDiff sameDiff, SDVariable i_v1, SDVariable i_v2, boolean inPlace)
public BaseGradientOp()
public BaseGradientOp(INDArray x)
public INDArray wrt()
wrt
in interface GradientOp
public boolean isExecSpecial()
Op
isExecSpecial
in interface Op
isExecSpecial
in class BaseOp
public boolean isPassThrough()
Op
isPassThrough
in interface Op
isPassThrough
in class BaseOp
Copyright © 2018. All rights reserved.