DynamicCustomOp.DynamicCustomOpsBuilder, DynamicCustomOp.SameDiffBuilder
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_LABEL_SMOOTHING |
lossReduce
iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArguments
dimensions, extraArgs, inPlace, sameDiff, scalarValue
Constructor and Description |
---|
SoftmaxCrossEntropyLoss(SameDiff sameDiff,
LossReduce lossReduce,
SDVariable logits,
SDVariable weights,
SDVariable labels) |
SoftmaxCrossEntropyLoss(SameDiff sameDiff,
LossReduce lossReduce,
SDVariable logits,
SDVariable weights,
SDVariable labels,
double labelSmoothing) |
Modifier and Type | Method and Description |
---|---|
void |
addArgs() |
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
|
String |
opName()
This method returns op opName as string
|
Op.Type |
opType()
The type of the op
|
String |
tensorflowName()
The opName of this function tensorflow
|
addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, builder, calculateOutputShape, doDiff, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, initFromOnnx, inputArguments, numIArguments, numInputArguments, numOutputArguments, numTArguments, opHash, opNum, outputArguments, outputVariables, outputVariables, populateInputsAndOutputsFromSameDiff, removeIArgument, removeInputArgument, removeOutputArgument, removeTArgument, sameDiffBuilder, setInputArgument, setOutputArgument, tArgs, toString
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, f, getNumOutputs, getValue, hashCode, hasPlaceHolderInputs, isConfigProperties, larg, mappingsForFunction, onnxNames, outputVariable, outputVariablesNames, propertiesForFunction, rarg, resolvePropertiesFromSameDiffBeforeExecution, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isInplaceCall
public static final double DEFAULT_LABEL_SMOOTHING
public SoftmaxCrossEntropyLoss(SameDiff sameDiff, LossReduce lossReduce, SDVariable logits, SDVariable weights, SDVariable labels, double labelSmoothing)
public SoftmaxCrossEntropyLoss(SameDiff sameDiff, LossReduce lossReduce, SDVariable logits, SDVariable weights, SDVariable labels)
public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String,AttrValue> attributesForNode, GraphDef graph)
DifferentialFunction
NodeDef
initFromTensorFlow
in class DynamicCustomOp
public String opName()
DynamicCustomOp
public String onnxName()
DifferentialFunction
onnxName
in class DynamicCustomOp
public String tensorflowName()
DifferentialFunction
tensorflowName
in class DynamicCustomOp
public Op.Type opType()
DifferentialFunction
opType
in class DynamicCustomOp
Copyright © 2018. All rights reserved.