Fix ReductionV2 documentation symbol discrepancy.
PiperOrigin-RevId: 335128806 Change-Id: I75b2a159cdd7b6d6c6660dc135501f3498bd28f3
This commit is contained in:
parent
9892bc16cb
commit
8c44ebb314
@ -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)
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user