Fix the mean the description of the output shape, which should be [batch_size, 1...
authorImSheridan <xiaoyudong-512@163.com>
Tue, 6 Feb 2018 00:15:33 +0000 (08:15 +0800)
committerJonathan Hseu <vomjom@vomjom.net>
Tue, 6 Feb 2018 00:15:33 +0000 (16:15 -0800)
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py

index d6b5ece..0a53fd6 100644 (file)
@@ -331,7 +331,7 @@ def _luong_score(query, keys, scale):
   # batched matmul on:
   #   [batch_size, 1, depth] . [batch_size, depth, max_time]
   # resulting in an output shape of:
-  #   [batch_time, 1, max_time].
+  #   [batch_size, 1, max_time].
   # we then squeeze out the center singleton dimension.
   score = math_ops.matmul(query, keys, transpose_b=True)
   score = array_ops.squeeze(score, [1])