From 83cbabb85c23af5c0c12523567ce0394d37e30ba Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 12 Sep 2017 22:55:40 -0700 Subject: [PATCH] Fix wrong format of logging message. PiperOrigin-RevId: 168497373 --- tensorflow/contrib/learn/python/learn/estimators/head.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tensorflow/contrib/learn/python/learn/estimators/head.py b/tensorflow/contrib/learn/python/learn/estimators/head.py index 861db1f89ef..d6dc2a01ea5 100644 --- a/tensorflow/contrib/learn/python/learn/estimators/head.py +++ b/tensorflow/contrib/learn/python/learn/estimators/head.py @@ -1758,9 +1758,8 @@ def _weight_tensor(features, weight_column_name): # We don't bother with expanding dims of non-staticly shaped tensors or # scalars, and >1d is already in a good format. if rank == 1: - logging.warning( - "Weights {} has shape {}, expanding to make it 2d.", - weight_column_name, shape) + logging.warning("Weights {} has shape {}, expanding to make it 2d.". + format(weight_column_name, shape)) return ( sparse_ops.sparse_reshape(weight_tensor, (-1, 1)) if isinstance(weight_tensor, sparse_tensor.SparseTensor) else