public class DepthwiseConv2DBp extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder| Modifier and Type | Field and Description |
|---|---|
protected Conv2DConfig |
config |
axis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArgumentsdimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
DepthwiseConv2DBp(@NonNull SameDiff sameDiff,
@NonNull SDVariable input,
@NonNull SDVariable weights,
@NonNull SDVariable gradO,
@NonNull Conv2DConfig config) |
DepthwiseConv2DBp(@NonNull SameDiff sameDiff,
@NonNull SDVariable input,
@NonNull SDVariable weights,
SDVariable bias,
@NonNull SDVariable gradO,
@NonNull Conv2DConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArgs() |
List<DataType> |
calculateOutputDataTypes(List<DataType> inputDataTypes)
Calculate the data types for the output arrays.
|
String |
configFieldName()
Returns the name of the field to be used for looking up field names.
|
int |
getNumOutputs() |
Object |
getValue(Field property)
Get the value for a given property
for this function
|
long[] |
iArgs() |
boolean |
isConfigProperties()
Returns true if the fields for this class should be looked up from a configuration class.
|
String |
opName()
This method returns op opName as string
|
Map<String,Object> |
propertiesForFunction()
Returns the properties for a given function
|
addBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, calculateOutputShape, clearArrays, dArgs, doDiff, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, initFromOnnx, initFromTensorFlow, inputArguments, numBArguments, numDArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, onnxName, opHash, opNum, opType, outputArguments, outputVariables, outputVariables, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, setInputArgument, setInputArguments, setOutputArgument, tArgs, tensorflowName, toString, wrapFilterNull, wrapOrNull, wrapOrNullarg, arg, argNames, args, attributeAdaptersForFunction, diff, dup, equals, hashCode, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariablesNames, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallprotected Conv2DConfig config
public DepthwiseConv2DBp(@NonNull
@NonNull SameDiff sameDiff,
@NonNull
@NonNull SDVariable input,
@NonNull
@NonNull SDVariable weights,
SDVariable bias,
@NonNull
@NonNull SDVariable gradO,
@NonNull
@NonNull Conv2DConfig config)
public DepthwiseConv2DBp(@NonNull
@NonNull SameDiff sameDiff,
@NonNull
@NonNull SDVariable input,
@NonNull
@NonNull SDVariable weights,
@NonNull
@NonNull SDVariable gradO,
@NonNull
@NonNull Conv2DConfig config)
public long[] iArgs()
iArgs in interface CustomOpiArgs in class DynamicCustomOpprotected void addArgs()
public Object getValue(Field property)
DifferentialFunctiongetValue in class DifferentialFunctionproperty - the property to getpublic Map<String,Object> propertiesForFunction()
DifferentialFunctionpropertiesForFunction in class DifferentialFunctionpublic boolean isConfigProperties()
DifferentialFunctionisConfigProperties in class DifferentialFunctionpublic String configFieldName()
DifferentialFunctionDifferentialFunction.isConfigProperties()
to facilitate mapping fields for model import.configFieldName in class DifferentialFunctionpublic String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOppublic List<DataType> calculateOutputDataTypes(List<DataType> inputDataTypes)
DifferentialFunctionDifferentialFunction.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 DifferentialFunctioninputDataTypes - The data types of the inputspublic int getNumOutputs()
getNumOutputs in class DifferentialFunctionCopyright © 2021. All rights reserved.