public class BatchMmul extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder| Modifier and Type | Field and Description |
|---|---|
protected int |
batchSize |
protected int |
K |
protected int |
M |
protected int |
N |
protected int |
transposeA |
protected int |
transposeB |
iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArgumentsdimensions, extraArgs, inPlace, sameDiff, scalarValue| Constructor and Description |
|---|
BatchMmul() |
BatchMmul(SameDiff sameDiff,
SDVariable[] matrices,
boolean transposeA,
boolean transposeB) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgs() |
List<SDVariable> |
doDiff(List<SDVariable> grads)
The actual implementation for automatic differentiation.
|
int |
getNumOutputs() |
String |
opName()
This method returns op opName as string
|
addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, asProperties, assertValidForExecution, builder, calculateOutputShape, 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, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, outputVariable, outputVariablesNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallprotected int transposeA
protected int transposeB
protected int batchSize
protected int M
protected int N
protected int K
public BatchMmul(SameDiff sameDiff, SDVariable[] matrices, boolean transposeA, boolean transposeB)
public BatchMmul()
public int getNumOutputs()
getNumOutputs in class DifferentialFunctionpublic void addArgs()
public String opName()
DynamicCustomOpopName in interface CustomOpopName in class DynamicCustomOppublic List<SDVariable> doDiff(List<SDVariable> grads)
DifferentialFunctiondoDiff in class DynamicCustomOpCopyright © 2018. All rights reserved.