Skip to content

Commit

Permalink
The error should print the name of the variable.
Browse files Browse the repository at this point in the history
Change: 113179600
  • Loading branch information
A. Unique TensorFlower authored and Vijay Vasudevan committed Jan 27, 2016
1 parent 89ecc05 commit ac9b4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/python/training/moving_averages.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def apply(self, var_list=None):
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
Expand Down

0 comments on commit ac9b4d3

Please sign in to comment.