ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.compat.v1.distribute.get_loss_reduction

View source on GitHub

tf.distribute.ReduceOp corresponding to the last loss reduction.

This is used to decide whether loss should be scaled in optimizer (used only for estimator + v1 optimizer use case).

tf.distribute.ReduceOp corresponding to the last loss reduction for estimator and v1 optimizer use case. tf.distribute.ReduceOp.SUM otherwise.