1. 26 8月, 2022 1 次提交
    • X
      [ Dy2static ] select input fix and while_op memory bug fixed. (#45380) · 91298884
      xiongkun 提交于
      * while support for python container.
      It is convenient to convert more dynamic graph codes into static graphs.
      
      * cond support python container
      
      * 1. make select_input output shape = input[1]
      2. add warning in while_loop risky assign
      
      * fix 2 problem in GPT export:
      1. a bug in while_op no_need_copy_var, which causes gpu memory leakage
      2. a bug in undefined_var where the stop_gradient should be False.
      
      * change name by code review
      
      * format
      91298884
  2. 24 8月, 2022 1 次提交
  3. 19 8月, 2022 2 次提交
  4. 18 8月, 2022 1 次提交
  5. 10 8月, 2022 1 次提交
  6. 09 8月, 2022 1 次提交
  7. 03 8月, 2022 1 次提交
  8. 02 8月, 2022 2 次提交
  9. 21 7月, 2022 1 次提交
  10. 14 7月, 2022 1 次提交
  11. 12 7月, 2022 1 次提交
    • X
      [ Dy2Static ]Change NameVisitor in while to FunctionScopeAnalysis (#44155) · c5c6026e
      xiongkun 提交于
      * change NameVisitor to FunctionScopeAnalysis
      
      * polish the logic of undefined var in while_loop. create vars after body execution
      
      * replace old NameVisitor in while and fix all CI
      
      * Togather with CreateVariableTransformer
      
      * add create_variable_transformer
      
      * fix bugs
      
      * merge
      
      * fix some error, TODO: ForNodePreTransform ahead
      
      * merge for unite PR
      
      * fix conflict with base_transformer PR
      
      * fix ci errors, fix [for i in range()] error
      
      * fix according to code review
      c5c6026e
  12. 08 7月, 2022 1 次提交
  13. 06 7月, 2022 1 次提交
    • X
      [Dy2static] FunctionScopeVisitor Enhance and substitute the original NameVisitor in If (#43967) · b603dd55
      xiongkun 提交于
      * add support for control flow block analysis
      
      * move FunctionNameLivenessAnalysis into utils
      
      * pass test_ifelse.py
      
      * remove duplicate data_layer_not_check
      
      * pass the test_ifelse.py
      
      * fix unittest error .
      
      * fix all ci error in first version
      
      * temporay disable CreateVariableTransformer
      
      * fix ci errors
      
      * fix function name liveness analysis bugs
      
      * modifty def cond
      
      * fix
      
      * fix ci error - v2
      
      * fix by code review
      
      * change return_name_ids -> return_name
      b603dd55
  14. 05 7月, 2022 1 次提交
  15. 01 7月, 2022 3 次提交
  16. 30 6月, 2022 2 次提交
  17. 28 6月, 2022 2 次提交
  18. 27 6月, 2022 2 次提交
  19. 24 6月, 2022 1 次提交
  20. 23 6月, 2022 1 次提交
  21. 22 6月, 2022 1 次提交
  22. 14 6月, 2022 1 次提交
  23. 13 6月, 2022 2 次提交
  24. 09 6月, 2022 2 次提交
  25. 08 6月, 2022 2 次提交
  26. 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
  27. 02 6月, 2022 1 次提交
  28. 01 6月, 2022 1 次提交
  29. 27 5月, 2022 1 次提交
  30. 23 5月, 2022 1 次提交