From: Yong Tang Date: Sun, 1 Apr 2018 02:08:53 +0000 (+0000) Subject: Fix pylint issue X-Git-Tag: upstream/v1.9.0_rc1~303^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d744b314682d2313bd3e8ffe0b34e022cbeacb7b;p=platform%2Fupstream%2Ftensorflow.git Fix pylint issue Signed-off-by: Yong Tang --- diff --git a/tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py b/tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py index 867e49b..a0f5741 100644 --- a/tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py +++ b/tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py @@ -472,7 +472,8 @@ def _bahdanau_score(processed_query, keys, normalize): # Scalar used in weight normalization g = variable_scope.get_variable( "attention_g", dtype=dtype, - initializer=init_ops.constant_initializer(math.sqrt((1. / num_units))), shape=()) + initializer=init_ops.constant_initializer(math.sqrt((1. / num_units))), + shape=()) # Bias added prior to the nonlinearity b = variable_scope.get_variable( "attention_b", [num_units], dtype=dtype,