1. 13 3月, 2023 1 次提交
    • 【Hackathon No.89】 Remove circle import Part2 (#51199) · 34358de5
      张春乔 提交于
      * fix the only one circle import in call_transformer.py
      
      * move define of CONVERSION_OPTIONS from convert_call_func.py to program_translator.py
      
      * delete the self import of program_translator.py
      
      * fix import failed problem
      
      * define variable in utils.py
      
      * move is_builtin to utils.py
      
      * move is_builtin to utils.py
      
      * fix import errors
      
      * fix import errors
      
      * fix something
      
      * Update python/paddle/jit/dy2static/call_transformer.py
      Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
      
      * Update python/paddle/jit/dy2static/call_transformer.py
      
      ---------
      Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
      34358de5
  2. 10 3月, 2023 1 次提交
  3. 09 3月, 2023 1 次提交
  4. 21 2月, 2023 1 次提交
  5. 14 2月, 2023 2 次提交
  6. 02 2月, 2023 1 次提交
    • X
      【PRIM】Support use operator's output metadata info in constructing static... · d8643cb6
      Xiaoxu Chen 提交于
      【PRIM】Support use operator's output metadata info  in constructing static backward composite (#50043)
      
      * [prim] support custom target_gradients
      
      * support infershape after append one gradop
      
      * [prim] add simple net test
      
      * fix test_loop segment fault bug
      
      * [prim] fix infer shape segment fault bug when output of grad_op_desc is empty
      d8643cb6
  7. 17 1月, 2023 1 次提交
  8. 13 12月, 2022 1 次提交
  9. 07 12月, 2022 1 次提交
  10. 01 12月, 2022 1 次提交
  11. 29 11月, 2022 1 次提交
  12. 22 11月, 2022 1 次提交
  13. 25 10月, 2022 1 次提交
  14. 23 10月, 2022 1 次提交
  15. 20 10月, 2022 1 次提交
  16. 19 10月, 2022 2 次提交
  17. 10 10月, 2022 1 次提交
  18. 27 9月, 2022 1 次提交
  19. 22 9月, 2022 1 次提交
  20. 21 9月, 2022 2 次提交
  21. 14 9月, 2022 2 次提交
  22. 08 9月, 2022 1 次提交
    • X
      [Dy2Static] fix non-local error while dealing push_pop names (#45828) · 67d77846
      xiongkun 提交于
      * 1. fix non-local error while dealing push_pop names
      2. escape "'" in push_pop_names to avoid syntax errors.
      3. unified the non-local stmt creation processes in getter and setter.
      4. split the nonlocal_names and getter/setter names.
      
      * fix bugs
      
      * 1. revert setter and getter, push_pop_names must have non-local
      
      * fix bugs.
      
      * code format
      67d77846
  23. 06 9月, 2022 1 次提交
  24. 02 9月, 2022 1 次提交
    • X
      [ Dy2Static ] transfer list into tensor array at runtime. (#45594) · 3be7f495
      xiongkun 提交于
      * 1. make list transformer into jit form.
      2. fix some bugs in tensor_array, such as append.
      3. enhance the function analysis visitor to recognize push/pop.
      4. add setter/getter helper to deal with 2+ name sets.
      
      * fix ci errors:
      1. add to_tensor_array logic in convert_cond
      2. fix IfExpr error.
      3. fix erros while return_names or push_pop_names is None
      4. fix slice error in a[i]=1 where a is tensor_array
      5. add pop interface in Variable
      3be7f495
  25. 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
  26. 19 8月, 2022 1 次提交
  27. 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
  28. 08 7月, 2022 1 次提交
  29. 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
  30. 05 7月, 2022 1 次提交
  31. 01 7月, 2022 1 次提交
  32. 30 6月, 2022 1 次提交
  33. 28 6月, 2022 1 次提交
  34. 23 6月, 2022 1 次提交
  35. 13 6月, 2022 1 次提交
  36. 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