public abstract class BaseTensorOp extends DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder
iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArguments
dimensions, extraArgs, inPlace, 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<SDVariable> |
doDiff(List<SDVariable> f1)
The actual implementation for automatic differentiation.
|
abstract TensorList |
execute(SameDiff sameDiff) |
protected INDArray |
getArgumentArray(int index) |
protected TensorList |
getList(SameDiff sameDiff) |
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() |
addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, asProperties, assertValidForExecution, builder, calculateOutputShape, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, inputArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, opName, opNum, outputArguments, outputVariables, outputVariables, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, sameDiffBuilder, setInputArgument, setOutputArgument, tArgs, tensorflowName
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, f, getNumOutputs, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, outputVariable, outputVariablesNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isInplaceCall
public 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)
DifferentialFunction
NodeDef
initFromTensorFlow
in class DynamicCustomOp
public List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunction
doDiff
in class DynamicCustomOp
public abstract TensorList execute(SameDiff sameDiff)
protected INDArray getArgumentArray(int index)
protected TensorList getList(SameDiff sameDiff)
public Op.Type opType()
DifferentialFunction
opType
in class DynamicCustomOp
public String onnxName()
DifferentialFunction
onnxName
in class DynamicCustomOp
public String toString()
toString
in class DynamicCustomOp
Copyright © 2018. All rights reserved.