T - data type for loss() output@Operator public final class SoftmaxCrossEntropyWithLogits<T extends Number> extends PrimitiveOp
Inputs are the logits, not probabilities.
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
backprop()
backpropagated gradients (batch_size x num_classes matrix).
|
static <T extends Number> |
create(Scope scope,
Operand<T> features,
Operand<T> labels)
Factory method to create a class to wrap a new SoftmaxCrossEntropyWithLogits operation to the graph.
|
Output<T> |
loss()
Per example loss (batch_size vector).
|
equals, hashCode, toStringpublic static <T extends Number> SoftmaxCrossEntropyWithLogits<T> create(Scope scope, Operand<T> features, Operand<T> labels)
scope - current graph scopefeatures - batch_size x num_classes matrixlabels - batch_size x num_classes matrix
The caller must ensure that each batch of labels represents a valid
probability distribution.Copyright © 2015–2019. All rights reserved.