-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shape issue of
return_all_hiddens
in roberta (#1438)
Summary: By default `return_all_hiddens` is False, the shape of `features` will be BxTxC. If use `return_all_hiddens`, the shape of `features` will be TxBxC. See https://github.com/pytorch/fairseq/blob/9398a2829596393b73f5c5f1b99edf4c2d8f9316/fairseq/modules/transformer_sentence_encoder.py#L227 Pull Request resolved: #1438 Differential Revision: D18809509 Pulled By: myleott fbshipit-source-id: 696b395934e2b7e5807387069fe1da49a4df98c7
- Loading branch information
1 parent
72bcb9d
commit f8180af
Showing
2 changed files
with
5 additions
and
8 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
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