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 2 次提交
  3. 22 8月, 2022 1 次提交
  4. 19 8月, 2022 2 次提交
  5. 18 8月, 2022 1 次提交
  6. 17 8月, 2022 2 次提交
  7. 11 8月, 2022 1 次提交
  8. 10 8月, 2022 1 次提交
  9. 09 8月, 2022 1 次提交
  10. 04 8月, 2022 1 次提交
    • N
      [Docs][en] adjust code example format (#44679) · d5de7886
      Nyakku Shigure 提交于
      * add name attribute to code-block, test=document_fix
      
      * remove redundant labels, test=document_fix
      
      * remove redundant labels (from upstream), test=document_fix
      
      * more COPY-FROM (try multiple code example), test=document_fix
      
      * empty commit, try to trigger PR-CI-build
      
      * fix some `Examples:` format issues
      
      * fix some ci errors
      d5de7886
  11. 03 8月, 2022 2 次提交
  12. 02 8月, 2022 3 次提交
    • X
      [ Dy2Static ] Remove assign split (#44769) · be0ec904
      xiongkun 提交于
      * just a test
      
      * remove split assign test
      
      * remove other useless code related to split assign
      be0ec904
    • W
      [Eager] use eager final state instead intermediate state (#44722) · f1873b90
      Weilong Wu 提交于
      * [Eager] call final_state_slice under eager mode
      
      * rm useless comments
      
      * use eager final state instead intermidiate state
      
      * update fill_constant yaml
      
      * update fill_constant yaml
      
      * modify wrapped_infermeta_gen logic to fix special case
      
      * fix slice in manipulation
      
      * use fill_constant_
      
      * modify slice infermeta
      
      * rm final_state_conv2d
      
      * use final_state_slice
      
      * use final_state_slice only
      
      * polish slice, use final state
      
      * add paddle_throw for SplitInferMeta
      
      * rm fill_constant_ temply
      
      * recover array_equal, not allclose
      
      * recover original code
      f1873b90
    • W
      [Dy2St]Raise TypeError when call to_static to convert a method of a common class (#44781) · c3d4a3d8
      WangZhen 提交于
      * Fix to_static error when call to_static to convert a method of a common class
      
      * raise typerror when class no inherits from layer
      
      * Fix @to_static
      c3d4a3d8
  13. 27 7月, 2022 1 次提交
  14. 26 7月, 2022 1 次提交
  15. 25 7月, 2022 1 次提交
  16. 21 7月, 2022 2 次提交
  17. 14 7月, 2022 1 次提交
  18. 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
  19. 08 7月, 2022 1 次提交
  20. 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
  21. 05 7月, 2022 3 次提交
  22. 01 7月, 2022 4 次提交
  23. 30 6月, 2022 2 次提交
  24. 28 6月, 2022 3 次提交
  25. 27 6月, 2022 1 次提交