Fix ReductionV2 documentation symbol discrepancy.

PiperOrigin-RevId: 335128806
Change-Id: I75b2a159cdd7b6d6c6660dc135501f3498bd28f3
This commit is contained in:
Rick Chao 2020-10-02 17:07:23 -07:00 committed by TensorFlower Gardener
parent 9892bc16cb
commit 8c44ebb314

View File

@ -44,7 +44,7 @@ class ReductionV2(object):
loss_obj = tf.keras.losses.CategoricalCrossentropy(
reduction=tf.keras.losses.Reduction.NONE)
....
loss = tf.reduce_sum(loss_object(labels, predictions)) *
loss = tf.reduce_sum(loss_obj(labels, predictions)) *
(1. / global_batch_size)
```