1. 20 1月, 2021 3 次提交
  2. 14 1月, 2021 1 次提交
  3. 13 1月, 2021 2 次提交
  4. 11 1月, 2021 3 次提交
  5. 08 1月, 2021 3 次提交
  6. 07 1月, 2021 1 次提交
  7. 06 1月, 2021 1 次提交
  8. 31 12月, 2020 1 次提交
  9. 28 12月, 2020 1 次提交
  10. 22 12月, 2020 1 次提交
  11. 21 12月, 2020 1 次提交
  12. 18 12月, 2020 2 次提交
  13. 14 12月, 2020 1 次提交
    • L
      [Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is... · 0cad1152
      liym27 提交于
      [Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is negative in for-range stmts (#29519)
      
      1. Fix error in _build_cond_stmt of for-range stmts. 
      
      2. Support that step value is negative in for-range stmts
      
      3. Fix code because of the diff between Py2 and Py3
      0cad1152
  14. 11 12月, 2020 2 次提交
  15. 10 12月, 2020 1 次提交
  16. 09 12月, 2020 3 次提交
  17. 07 12月, 2020 1 次提交
  18. 04 12月, 2020 4 次提交
  19. 03 12月, 2020 2 次提交
    • L
      use has_grad instead of train_mode (#29309) · b58cfff8
      Leo Chen 提交于
      * use has_grad instead of train_mode
      
      * add vlog for debug
      
      * fix ut
      
      * fix ut
      b58cfff8
    • L
      [Dy2stat] Add a decorator paddle.jit.not_to_static to support that not to... · b9a8ebd5
      liym27 提交于
      [Dy2stat] Add a decorator paddle.jit.not_to_static to support that not to convert a function in Dynamic-to-Static. (#29253)
      
      Usage scenarios:A function could have run successfully in static mode,  you can use it to decorate a function in the following cases:
        1. An unknown error occurs in the dynamic-to-static conversion process of the function;
        2. In the internal implementation of the function, it has two branches: dynamic branch and static branch;
        3. Users don't want to convert the function in the process of dynamic to static.
      b9a8ebd5
  20. 02 12月, 2020 1 次提交
    • H
      [Dy2stat] Fix PaddleGan Deoldify Model Dy2stat Problems (#29226) · aec05d81
      Huihuang Zheng 提交于
      This PR fixes several problems in dy2stat for Deoldify model in PaddleGan.
      
      In model, software engineer wrote if x.shape == y.shape, the Tenser shape is a tuple in dygraph so the == returns True/False, but in static graph the == becomes element-wise comparison, which is a different behavior. In this PR we reduce the element-wise comparison result.
      
      If software engineer write computations which uses parameters in hooks, the static graph can loss the parameter variable because we put param_guard at forward of a Layer. In this PR we made param_guard cover pre-hook and post-hook.
      
      In PaddleGan, software engineer calculated some parameter values in __init__ by running some dygraph code. Those code also run during dy2stat. So some variables may be assign as a VarBase (Tensor) first and then Variable, which raised an error. We fixed the bug in this PR by handling the case.
      
      TODO: We just added testcase for the 1. shape comparison. Should add test case for 2. and 3. But since we are chasing 2.0RC, I will do it in the near future PR
      aec05d81
  21. 01 12月, 2020 4 次提交
  22. 30 11月, 2020 1 次提交