From a496df8788eb7d9a5f9b4341e0cdf4cf4dc10fcc Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" <gardener@tensorflow.org> Date: Wed, 15 Jun 2016 15:10:20 -0800 Subject: [PATCH] Fixing absolute_difference loss's default scope name. Change: 125004103 --- tensorflow/contrib/losses/python/losses/loss_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/contrib/losses/python/losses/loss_ops.py b/tensorflow/contrib/losses/python/losses/loss_ops.py index b207c54626c..f1937c6b203 100644 --- a/tensorflow/contrib/losses/python/losses/loss_ops.py +++ b/tensorflow/contrib/losses/python/losses/loss_ops.py @@ -268,7 +268,7 @@ def absolute_difference(predictions, targets, weight=1.0, scope=None): if the shape of `weight` is invalid. """ with ops.op_scope([predictions, targets], - scope, "sum_of_squares_loss") as scope: + scope, "absolute_difference") as scope: predictions.get_shape().assert_is_compatible_with(targets.get_shape()) if weight is None: raise ValueError("`weight` cannot be None")