public abstract class BaseDynamicCustomReduction extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder| Modifier and Type | Field and Description |
|---|---|
protected int[] |
dimensions |
protected boolean |
isComplex |
protected boolean |
isEmptyReduce |
protected boolean |
keepDims |
axis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, sArguments, tArgumentsextraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
BaseDynamicCustomReduction() |
BaseDynamicCustomReduction(boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(INDArray[] inputs,
boolean keepDims,
int[] dimensions) |
BaseDynamicCustomReduction(INDArray[] inputs,
INDArray[] outputs) |
BaseDynamicCustomReduction(INDArray[] inputs,
INDArray[] outputs,
boolean keepDims) |
BaseDynamicCustomReduction(INDArray[] inputs,
INDArray[] outputs,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(INDArray[] input,
INDArray[] output,
boolean keepDims,
boolean isComplex,
int[] dimensions) |
BaseDynamicCustomReduction(INDArray[] inputs,
INDArray[] outputs,
boolean keepDims,
int[] dimensions) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable[] args,
boolean keepDims) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable[] args,
boolean keepDims,
boolean isComplex) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable[] args,
boolean inPlace,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable[] args,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable[] args,
boolean keepDims,
boolean isComplex,
int[] dimensions) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable[] args,
boolean keepDims,
int[] dimensions) |
BaseDynamicCustomReduction(SameDiff sameDiff,
SDVariable arg,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
INDArray[] inputs,
INDArray[] outputs,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
INDArray[] inputs,
INDArray[] outputs,
List<Double> tArguments,
int[] iArguments,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
INDArray[] inputs,
INDArray[] outputs,
List<Double> tArguments,
List<Integer> iArguments,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
INDArray input,
INDArray output,
List<Double> tArguments,
int[] iArguments,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
SameDiff sameDiff,
SDVariable[] args,
boolean inPlace,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
BaseDynamicCustomReduction(String opName,
SameDiff sameDiff,
SDVariable[] args,
boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArgs() |
List<DataType> |
calculateOutputDataTypes(List<DataType> dataTypes)
Calculate the data types for the output arrays.
|
abstract String |
opName()
This method returns op opName as string
|
addBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addSArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, calculateOutputShape, clearArrays, computeArrays, configureFromArguments, dArgs, doDiff, generateFake, generateFake, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getSArgument, getTArgument, getValue, iArgs, initFromOnnx, initFromTensorFlow, inputArguments, mappingsForFunction, numBArguments, numDArguments, numIArguments, numInputArguments, numOutputArguments, numSArguments, numTArguments, onnxName, opHash, opNum, opType, outputArguments, outputVariables, outputVariables, propertiesForFunction, removeIArgument, removeInputArgument, removeOutputArgument, removeSArgument, removeTArgument, sArgs, setInputArgument, setInputArguments, setOutputArgument, setPropertiesForFunction, setValueFor, tArgs, tensorflowName, toString, wrapFilterNull, wrapOrNull, wrapOrNullarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, configureWithSameDiff, diff, dup, equals, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getNumOutputs, getStringFromProperty, hashCode, isConfigProperties, larg, onnxNames, outputs, outputVariable, outputVariablesNames, rarg, replaceArg, setInstanceId, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallprotected boolean keepDims
protected boolean isComplex
protected boolean isEmptyReduce
protected int[] dimensions
public BaseDynamicCustomReduction()
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable[] args, boolean keepDims)
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable[] args, boolean keepDims, int[] dimensions)
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable[] args, boolean keepDims, boolean isComplex)
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable[] args, boolean keepDims, boolean isComplex, int[] dimensions)
public BaseDynamicCustomReduction(INDArray[] inputs, INDArray[] outputs, boolean keepDims)
public BaseDynamicCustomReduction(INDArray[] inputs, INDArray[] outputs, boolean keepDims, int[] dimensions)
public BaseDynamicCustomReduction(INDArray[] inputs, boolean keepDims, int[] dimensions)
public BaseDynamicCustomReduction(boolean keepDims,
boolean isComplex,
boolean isEmptyReduce,
int[] dimensions)
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable arg, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable[] args, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, SameDiff sameDiff, SDVariable[] args, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, INDArray input, INDArray output, List<Double> tArguments, int[] iArguments, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, INDArray[] inputs, INDArray[] outputs, List<Double> tArguments, int[] iArguments, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, INDArray[] inputs, INDArray[] outputs, List<Double> tArguments, List<Integer> iArguments, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(INDArray[] inputs, INDArray[] outputs, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, INDArray[] inputs, INDArray[] outputs, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, SameDiff sameDiff, SDVariable[] args, boolean inPlace, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(SameDiff sameDiff, SDVariable[] args, boolean inPlace, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
public BaseDynamicCustomReduction(String opName, boolean keepDims, boolean isComplex, boolean isEmptyReduce, int[] dimensions)
protected void addArgs()
public List<DataType> calculateOutputDataTypes(List<DataType> dataTypes)
DynamicCustomOp.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 DifferentialFunctiondataTypes - The data types of the inputspublic abstract String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOpCopyright © 2022. All rights reserved.