Commit f79c39e9 authored by Mark Daoust's avatar Mark Daoust Committed by TensorFlower Gardener
Browse files

Use sparse xent to avoid softmax_v2 warning in examples/learn

`tf.nn.softmax_cross_entropy_with_logits` and `tf.losses.softmax_cross_entropy` both throw the warning.

Almost everywhere it's used can simply be replaced by `tf.losses.sparse_softmax_cross_entropy`

PiperOrigin-RevId: 178105702
parent 7ac7aa86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment