-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange attention output to have batch dimension on the 0th axis (#…
…8591) * transpose first and second axis * add changelog * typo * fix tests
- Loading branch information
1 parent
68ab1d0
commit 03b3236
Showing
3 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Tensorflow models now return batch dimension on the first axis and number of layers on the second axis for output array associated with `attention_weights` key. | ||
|
||
Previously, the expected shape of the output array was - `(num_layers, batch_size, num_heads, length, length)`. Now, the expected shape of the output array is `(batch_size, num_layers, num_heads, length, length)`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters