public abstract class BaseTensorOp extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilderaxis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArgumentsdimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
BaseTensorOp() |
BaseTensorOp(SameDiff sameDiff,
SDVariable[] args) |
BaseTensorOp(String name,
SameDiff sameDiff,
SDVariable[] args) |
| Modifier and Type | Method and Description |
|---|---|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
List<SDVariable> |
doDiff(List<SDVariable> f1)
The actual implementation for automatic differentiation.
|
int |
getNumOutputs() |
void |
initFromTensorFlow(NodeDef nodeDef,
SameDiff initWith,
Map<String,AttrValue> attributesForNode,
GraphDef graph)
Initialize the function from the given
NodeDef |
String |
onnxName()
The opName of this function in onnx
|
Op.Type |
opType()
The type of the op
|
String |
toString() |
addBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, clearArrays, dArgs, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, inputArguments, numBArguments, numDArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, opName, opNum, outputArguments, outputVariables, outputVariables, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, setInputArgument, setInputArguments, setOutputArgument, tArgs, tensorflowName, wrapFilterNull, wrapOrNull, wrapOrNullarg, arg, argNames, args, attributeAdaptersForFunction, calculateOutputDataTypes, configFieldName, diff, dup, equals, getValue, hashCode, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInplaceCallpublic BaseTensorOp(String name, SameDiff sameDiff, SDVariable[] args)
public BaseTensorOp(SameDiff sameDiff, SDVariable[] args)
public BaseTensorOp()
public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)
DifferentialFunctionNodeDefinitFromTensorFlow in class DynamicCustomOppublic List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunctiondoDiff in class DynamicCustomOppublic Op.Type opType()
DifferentialFunctionopType in class DynamicCustomOppublic String onnxName()
DifferentialFunctiononnxName in class DynamicCustomOppublic String toString()
toString in class DynamicCustomOppublic List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in interface CustomOpcalculateOutputShape in class DynamicCustomOppublic int getNumOutputs()
getNumOutputs in class DifferentialFunctionCopyright © 2021. All rights reserved.