From ac9b4d39a3642214929ac55904c61c063d41b785 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 27 Jan 2016 11:03:31 -0800 Subject: [PATCH] The error should print the name of the variable. Change: 113179600 --- tensorflow/python/training/moving_averages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/training/moving_averages.py b/tensorflow/python/training/moving_averages.py index 14c77afb70a..5514dab9db8 100644 --- a/tensorflow/python/training/moving_averages.py +++ b/tensorflow/python/training/moving_averages.py @@ -207,9 +207,9 @@ class ExponentialMovingAverage(object): var_list = variables.trainable_variables() for var in var_list: if var.dtype.base_dtype not in [dtypes.float32, dtypes.float64]: - raise TypeError("The variables must be float or double: %s" % var) + raise TypeError("The variables must be float or double: %s" % var.name) if var in self._averages: - raise ValueError("Moving average already computed for: %s" % var) + raise ValueError("Moving average already computed for: %s" % var.name) # For variables: to lower communication bandwidth across devices we keep # the moving averages on the same device as the variables. For other