Skip to content

Commit

Permalink
Merge pull request google-research#252 from tianxin1860/master
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
jacobdevlin-google authored Dec 18, 2018
2 parents 4be9723 + 738b648 commit 85f453a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,12 @@ def transpose_for_scores(input_tensor, batch_size, num_attention_heads,
context_layer = tf.transpose(context_layer, [0, 2, 1, 3])

if do_return_2d_tensor:
# `context_layer` = [B*F, N*V]
# `context_layer` = [B*F, N*H]
context_layer = tf.reshape(
context_layer,
[batch_size * from_seq_length, num_attention_heads * size_per_head])
else:
# `context_layer` = [B, F, N*V]
# `context_layer` = [B, F, N*H]
context_layer = tf.reshape(
context_layer,
[batch_size, from_seq_length, num_attention_heads * size_per_head])
Expand Down

0 comments on commit 85f453a

Please sign in to comment.