DynamicCustomOp.DynamicCustomOpsBuilder
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_LABEL_SMOOTHING |
lossReduce
axis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, tArguments
dimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue
Constructor and Description |
---|
SigmoidCrossEntropyLoss(INDArray labels,
INDArray predictions,
INDArray weights,
LossReduce lossReduce,
double labelSmoothing) |
SigmoidCrossEntropyLoss(SameDiff sameDiff,
LossReduce reductionMode,
SDVariable logits,
SDVariable weights,
SDVariable labels) |
SigmoidCrossEntropyLoss(SameDiff sameDiff,
LossReduce lossReduce,
SDVariable logits,
SDVariable weights,
SDVariable labels,
double labelSmoothing) |
SigmoidCrossEntropyLoss(SameDiff sameDiff,
SDVariable labels,
SDVariable logits,
SDVariable weights,
LossReduce lossReduce,
double labelSmoothing) |
Modifier and Type | Method and Description |
---|---|
void |
addArgs() |
List<SDVariable> |
doDiff(List<SDVariable> grad)
The actual implementation for automatic differentiation.
|
String |
opName()
This method returns op opName as string
|
calculateOutputDataTypes, getWeights, getWeights
addBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, calculateOutputShape, clearArrays, dArgs, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getTArgument, iArgs, 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, wrapOrNull
arg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, equals, getNumOutputs, getValue, hashCode, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNames
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isInplaceCall
public static final double DEFAULT_LABEL_SMOOTHING
public SigmoidCrossEntropyLoss(SameDiff sameDiff, SDVariable labels, SDVariable logits, SDVariable weights, LossReduce lossReduce, double labelSmoothing)
public SigmoidCrossEntropyLoss(SameDiff sameDiff, LossReduce lossReduce, SDVariable logits, SDVariable weights, SDVariable labels, double labelSmoothing)
public SigmoidCrossEntropyLoss(SameDiff sameDiff, LossReduce reductionMode, SDVariable logits, SDVariable weights, SDVariable labels)
public SigmoidCrossEntropyLoss(INDArray labels, INDArray predictions, INDArray weights, LossReduce lossReduce, double labelSmoothing)
public String opName()
DynamicCustomOp
public List<SDVariable> doDiff(List<SDVariable> grad)
DifferentialFunction
doDiff
in class DynamicCustomOp
Copyright © 2021. All rights reserved.