1. 28 May, 2020 5 commits
  2. 27 May, 2020 10 commits
  3. 26 May, 2020 11 commits
  4. 25 May, 2020 11 commits
  5. 23 May, 2020 1 commit
  6. 22 May, 2020 2 commits
    • Bijay Gurung's avatar
      Add Type Hints to modeling_utils.py Closes #3911 (#3948) · e19b9781
      Bijay Gurung authored
      
      
      * Add Type Hints to modeling_utils.py Closes #3911
      
      Add Type Hints to methods in `modeling_utils.py`
      
      Note: The coverage isn't 100%. Mostly skipped internal methods.
      
      * Reformat according to `black` and `isort`
      
      * Use typing.Iterable instead of Sequence
      
      * Parameterize Iterable by its generic type
      
      * Use typing.Optional when None is the default value
      
      * Adhere to style guideline
      
      * Update src/transformers/modeling_utils.py
      
      * Update src/transformers/modeling_utils.py
      Co-authored-by: default avatarJulien Chaumond <chaumond@gmail.com>
      e19b9781
    • Funtowicz Morgan's avatar
      Warn the user about max_len being on the path to be deprecated. (#4528) · 996f393a
      Funtowicz Morgan authored
      * Warn the user about max_len being on the path to be deprecated.
      
      * Ensure better backward compatibility when max_len is provided to a tokenizer.
      
      * Make sure to override the parameter and not the actual instance value.
      
      * Format & quality
      996f393a