Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tianxin1860 committed Dec 11, 2018
1 parent 4a47cc2 commit 738b648
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 738b648

Please sign in to comment.