public abstract class BaseReductionBp extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder| Modifier and Type | Field and Description |
|---|---|
protected int[] |
dimensions |
protected boolean |
keepDims |
iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArgumentsextraArgs, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
BaseReductionBp() |
BaseReductionBp(INDArray origInput,
INDArray gradAtOutput,
INDArray output,
boolean keepDims,
int... dimensions) |
BaseReductionBp(INDArray origInput1,
INDArray origInput2,
INDArray gradAtOutput,
INDArray output,
boolean keepDims,
int... dimensions) |
BaseReductionBp(SameDiff sameDiff,
SDVariable origInput,
SDVariable gradAtOutput,
boolean keepDims,
int... dimensions) |
BaseReductionBp(SameDiff sameDiff,
SDVariable origInput1,
SDVariable origInput2,
SDVariable gradAtOutput,
boolean keepDims,
int... dimensions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArgs() |
abstract String |
opName()
This method returns op opName as string
|
addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, asProperties, assertValidForExecution, builder, calculateOutputShape, doDiff, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, initFromTensorFlow, inputArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, onnxName, opHash, opNum, opType, outputArguments, outputVariables, outputVariables, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, sameDiffBuilder, setInputArgument, setOutputArgument, tArgs, tensorflowName, toStringarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, f, getNumOutputs, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, outputVariable, outputVariablesNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallpublic BaseReductionBp(SameDiff sameDiff, SDVariable origInput, SDVariable gradAtOutput, boolean keepDims, int... dimensions)
origInput - Pre-reduced inputgradAtOutput - Gradient at the outputkeepDims - If true: reduction dimensions were keptdimensions - Dimensions to reduce. May be nullpublic BaseReductionBp(SameDiff sameDiff, SDVariable origInput1, SDVariable origInput2, SDVariable gradAtOutput, boolean keepDims, int... dimensions)
origInput1 - Pre-reduced input 1origInput2 - Pre-reduced input 2gradAtOutput - Gradient at the outputkeepDims - If true: reduction dimensions were keptdimensions - Dimensions to reduce. May be nullpublic BaseReductionBp(INDArray origInput, INDArray gradAtOutput, INDArray output, boolean keepDims, int... dimensions)
origInput - Pre-reduced inputgradAtOutput - Gradient at the outputoutput - Output array - i.e., gradient at the input to the reduction functionkeepDims - If true: reduction dimensions were keptdimensions - Dimensions to reduce. May be nullpublic BaseReductionBp(INDArray origInput1, INDArray origInput2, INDArray gradAtOutput, INDArray output, boolean keepDims, int... dimensions)
origInput1 - Pre-reduced input1origInput2 - Pre-reduced input2gradAtOutput - Gradient at the outputoutput - Output array - i.e., gradient at the input to the reduction functionkeepDims - If true: reduction dimensions were keptdimensions - Dimensions to reduce. May be nullpublic BaseReductionBp()
protected void addArgs()
public abstract String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOpCopyright © 2018. All rights reserved.