1. 14 Nov, 2019 2 commits
    • R茅mi Louf's avatar
      update the examples, docs and template · 2276bf69
      R茅mi Louf authored
      2276bf69
    • 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
  2. 06 Nov, 2019 7 commits
  3. 05 Nov, 2019 11 commits
  4. 04 Nov, 2019 12 commits
  5. 03 Nov, 2019 1 commit
  6. 01 Nov, 2019 2 commits
  7. 31 Oct, 2019 5 commits