1. 02 6月, 2023 1 次提交
  2. 13 12月, 2022 1 次提交
  3. 08 12月, 2022 1 次提交
  4. 01 12月, 2022 1 次提交
  5. 30 11月, 2022 1 次提交
  6. 29 11月, 2022 1 次提交
  7. 03 11月, 2022 1 次提交
  8. 23 10月, 2022 1 次提交
  9. 27 9月, 2022 1 次提交
  10. 14 9月, 2022 1 次提交
  11. 08 7月, 2022 1 次提交
  12. 05 7月, 2022 1 次提交
  13. 01 7月, 2022 1 次提交
  14. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  15. 05 8月, 2021 1 次提交
  16. 26 10月, 2020 1 次提交
  17. 29 6月, 2020 1 次提交
    • H
      [Dy2stat] Add Basic Support for Grammar 'return' (#25176) · 6f631a27
      Huihuang Zheng 提交于
      This PR added basic support for 'return' grammar in dy2stat. It supports the control flow of 'return'.
      
      The basics idea is using a return value variable to store the early return statements and boolean state variables with if-else to skip the statements after the return statements.
      
      **This PR is very basic support. There are some corner cases I didn't develop/test**. For example, 'return None', 'return different length of variables', 'return non-tensor and tensor together', 'no return statement'. **These corner cases will be done in my next PRs**. Target date is this week.
      
      **Note**: 
      1. for the unit test, I changed test_program_translator.py because the StaticCode of `dyfunc_with_if_else` will change. To guarantee the correctness of `dyfunc_with_if_else`, I also run it in `TestRecursiveReturn` in test_return.py.
      
      2. I commented the early return code in bert_dygraph_model.py because 'return different length of variables' is unsupported now. I also know that there are some other models used early return and we didn't enable it in the unit test. I will add support for it in next PRs and then re-enable those tests.
      6f631a27
  18. 28 5月, 2020 1 次提交
  19. 19 5月, 2020 1 次提交
  20. 18 5月, 2020 1 次提交
    • C
      [Dy2static] Add for enumerate Variable support (#24398) · 03ba5b74
      Chen Weihang 提交于
      * initial test
      
      * for enumerate basic implement, test=develop
      
      * update unittests, test=develop
      
      * refine unittests to adapt new training mode, test=develop
      
      * refactor for node stmts parsing code, test=develop
      
      * self-review & polish details, test=develop
      03ba5b74
  21. 08 5月, 2020 1 次提交
  22. 19 3月, 2020 1 次提交