Computes softmax cross entropy cost and gradients to backpropagate.
tf.raw_ops.SoftmaxCrossEntropyWithLogits(
features, labels, name=None
)
Inputs are the logits, not probabilities.
Returns | |
---|---|
A tuple of Tensor objects (loss, backprop).
|
|
loss
|
A Tensor . Has the same type as features .
|
backprop
|
A Tensor . Has the same type as features .
|