1. 26 Nov, 2019 11 commits
  2. 14 Nov, 2019 1 commit
    • Rémi Louf's avatar
      replace LambdaLR scheduler wrappers by function · 022525b0
      Rémi Louf authored
      Custom schedulers are currently initiated by wrapping Pytorch's LambdaLR
      class and passing a method of the wrapping class to the __init__
      function of LambdaLR. This approach is not appropriate for several
      reasons:
      
      1. one does not need to define a class when it only defines a
      __init__() method;
      2. instantiating the parent class by passing a method of the child class
      creates a cyclical reference which leads to memory leaks. See issues #1742 and #1134.
      
      In this commit we replace the wrapper classes with functions that
      instantiate `LambdaLR` with a custom learning rate function. We use a
      closure to specify the parameter of the latter. We also do a bit of
      renaming within the function to explicit the behaviour and removed
      docstrings that were subsequently not necessary.
      022525b0
  3. 12 Nov, 2019 7 commits
  4. 11 Nov, 2019 1 commit
  5. 06 Nov, 2019 2 commits
  6. 05 Nov, 2019 1 commit
  7. 04 Nov, 2019 5 commits
  8. 30 Oct, 2019 2 commits
  9. 24 Oct, 2019 1 commit
  10. 22 Oct, 2019 1 commit
  11. 16 Oct, 2019 1 commit
  12. 15 Oct, 2019 1 commit
  13. 11 Oct, 2019 3 commits
  14. 10 Oct, 2019 3 commits