1. 23 9月, 2022 1 次提交
  2. 20 9月, 2022 1 次提交
  3. 19 9月, 2022 1 次提交
    • F
      [cherry-pick] [dy2static] support user to use decorator in their program (#46194) · d1ce974e
      feifei-111 提交于
      * [dy2static] support user to use decorator in their program (#45768)
      
      * support deco
      
      * fix deco ast type
      
      * arg_str
      
      * 1
      
      * support callable deco
      
      * code style
      
      * codestyle
      
      * test_error
      
      * fix decos in another file
      
      * recover conflict codes
      
      * [BugFix] fixed a bug in decorator transformer, it can not analyze decorator with params correctly (#46055)
      
      * fix deco call
      
      * add raise
      
      * add test
      
      * add warn, fix paddle api
      
      * fix error type
      
      * fix coverage
      d1ce974e
  4. 15 9月, 2022 1 次提交
    • X
      [ Dy2Static ] Fix bugs when select inputs meeting different shape or... · 00486956
      xiongkun 提交于
      [ Dy2Static ] Fix bugs when select inputs meeting different shape or undefined-var (#45916) (#46020)
      
      * fix select_input with different shape errors:
      1. select_input_with_buildin_type directly return non-undefinedvar branch when meeting undefined var
      2. the output shape of select_input is inferred from inputs.
      
      * reverse the logic in select_input
      00486956
  5. 09 9月, 2022 1 次提交
    • X
      [ Dy2Static ] convert_call support staticmethod for class. (#44983) · d0096eaf
      xiongkun 提交于
      * convert_call support staticmethod for class.
      
      * while support for python container.
      It is convenient to convert more dynamic graph codes into static graphs.
      
      * cond support python container
      
      * add unittest for staticmethod convert_call
      
      * fix bugs
      
      * add unittest for item interface
      
      * fix bugs
      
      * change to np.testing.assert_allclose
      
      * code format
      
      * fix comments.
      
      * code format
      d0096eaf
  6. 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
  7. 06 9月, 2022 1 次提交
  8. 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
  9. 31 8月, 2022 1 次提交
  10. 29 8月, 2022 2 次提交
    • Z
      [new_exe] Dy2Static support new_executor (#44450) · aba1295b
      zhangbo9674 提交于
      * add interpretercore
      
      * refine backward program id
      
      * add code
      
      * refine program
      
      * refine code
      
      * create forward/backward_program by prog2graph2prog method
      
      * test, do not care
      
      * refine code
      
      * refine code
      
      * refine code
      
      * test, do not care
      
      * add interpretorcore
      
      * add scope
      
      * refine scope create method
      
      * add jit for new_exe
      
      * solve conflict
      
      * delete unused code
      
      * polish code
      
      * polish code
      
      * refine scope in inplace
      
      * refine for datatransfer
      
      * refine _rebuild_from_desc
      
      * refine control eager deletion attr
      
      * refine used_for_jit
      
      * refine jit for infer
      
      * op size0 use ori program
      
      * polish code
      
      * refine jit
      
      * refine run_program_op ut
      
      * refine inplace
      
      * refine control
      
      * refine graph helper
      
      * refine control
      
      * refine inplace
      
      * refine buffer_share_inplace_pass
      
      * polish code
      
      * polish code
      
      * refine usage for compilerProgram
      
      * refine control
      
      * test
      
      * test core cache
      
      * refine code
      
      * refine io.py
      
      * increase test_seq2seq timeout
      
      * refine convert program
      
      * refine interpretercore_cache release
      
      * delete buildinplace
      
      * refine partial_program && io
      
      * refine code for io
      
      * test
      
      * test
      
      * test
      aba1295b
    • X
      [ Dy2Static ] Unify tensor.size and Variable.size() by jst (#45144) · 163cd154
      xiongkun 提交于
      * unify the size and size() by jst
      
      * fix bugs
      
      * bug fix.
      
      * fix bugs
      
      * change all_close -> np.testing.assert_allclose
      163cd154
  11. 26 8月, 2022 2 次提交
  12. 24 8月, 2022 1 次提交
  13. 19 8月, 2022 2 次提交
  14. 18 8月, 2022 1 次提交
  15. 10 8月, 2022 1 次提交
  16. 09 8月, 2022 1 次提交
  17. 03 8月, 2022 1 次提交
  18. 02 8月, 2022 2 次提交
  19. 21 7月, 2022 1 次提交
  20. 14 7月, 2022 1 次提交
  21. 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
  22. 08 7月, 2022 1 次提交
  23. 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
  24. 05 7月, 2022 1 次提交
  25. 01 7月, 2022 3 次提交
  26. 30 6月, 2022 2 次提交
  27. 28 6月, 2022 2 次提交
  28. 27 6月, 2022 2 次提交
  29. 24 6月, 2022 1 次提交
  30. 23 6月, 2022 1 次提交
  31. 22 6月, 2022 1 次提交
反馈
建议
客服 返回
顶部