public abstract class BaseReduction extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder
Modifier and Type | Field and Description |
---|---|
protected int[] |
dimensions |
protected boolean |
keepDims |
iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArguments
extraArgs, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
BaseReduction() |
BaseReduction(INDArray input,
INDArray output,
boolean keepDims,
int... dimensions) |
BaseReduction(INDArray input1,
INDArray input2,
INDArray output,
boolean keepDims,
int... dimensions) |
BaseReduction(SameDiff sameDiff,
SDVariable input,
boolean keepDims,
int... dimensions) |
BaseReduction(SameDiff sameDiff,
SDVariable input1,
SDVariable input2,
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, 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, toString
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, f, getNumOutputs, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, outputVariable, outputVariablesNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isInplaceCall
public BaseReduction(SameDiff sameDiff, SDVariable input, boolean keepDims, int... dimensions)
input
- Input to be reducedkeepDims
- If true: reduction dimensions were keptdimensions
- Dimensions to reduce. May be nullpublic BaseReduction(SameDiff sameDiff, SDVariable input1, SDVariable input2, boolean keepDims, int... dimensions)
input1
- input 1input2
- input 2keepDims
- If true: reduction dimensions were keptdimensions
- Dimensions to reduce. May be nullpublic BaseReduction(INDArray input, INDArray output, boolean keepDims, int... dimensions)
input
- inputoutput
- Output array - i.e., gradient at the input to the reduction functionkeepDims
- If true: reduction dimensions were keptdimensions
- Dimensions to reduce. May be nullpublic BaseReduction(INDArray input1, INDArray input2, INDArray output, boolean keepDims, int... dimensions)
input1
- Pre-reduced input1input2
- Pre-reduced input2output
- Output array - i.e., gradient at the input to the reduction functionkeepDims
- If true: reduction dimensions were keptdimensions
- Dimensions to reduce. May be nullpublic BaseReduction()
protected void addArgs()
public abstract String opName()
DynamicCustomOp
opName
in interface CustomOp
opName
in class DynamicCustomOp
Copyright © 2018. All rights reserved.