W3cubDocs

/TensorFlow 1.15

tf.distribute.get_loss_reduction

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).

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

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/distribute/get_loss_reduction