-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reformer] Make random seed generator available on random seed and no…
…t on model device (#6244) * improve if else statement random seeds * Apply suggestions from code review * Update src/transformers/modeling_reformer.py
- Loading branch information
1 parent
d5b0a0e
commit 6c9ba1d
Showing
1 changed file
with
8 additions
and
7 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
Ploum ploum, this function is only available in pytorch 1.6 so we should find a way to not use it in the earlier versions (pytorch 1.5.1 cpu does not have it for instance).