1. 02 6月, 2023 1 次提交
  2. 31 3月, 2023 1 次提交
  3. 19 12月, 2022 1 次提交
  4. 01 12月, 2022 1 次提交
  5. 29 11月, 2022 1 次提交
  6. 28 11月, 2022 1 次提交
  7. 24 10月, 2022 1 次提交
  8. 19 10月, 2022 1 次提交
  9. 28 9月, 2022 1 次提交
    • N
      [CodeStyle] format some dy2static unittests (#46463) · ee203340
      Nyakku Shigure 提交于
      * [CodeStyle] reformat test_error
      
      * update lineno
      
      * remove test_error from yapf whitelist
      
      * try format test_origin_info
      
      * try to fix origin info test case
      
      * remove future import
      
      * remove test_origin_info from yapf excludes
      
      * empty commit, test=document_fix
      
      * empty commit
      ee203340
  10. 27 9月, 2022 1 次提交
  11. 19 9月, 2022 1 次提交
    • X
      [Dy2Static] refactor the return transformer (#45900) · 908132dd
      xiongkun 提交于
      * 1. refactor the return transformer.
      2. fix some bugs in return transformer.
      
      * support raise error while return stmt's father is For or while
      
      * fix ci error.
      
      * fix ci error and add some unittest
      
      * code format
      
      * fix ci error
      908132dd
  12. 06 9月, 2022 1 次提交
  13. 27 5月, 2022 1 次提交
  14. 03 11月, 2021 1 次提交
    • 0
      [Dy2stat]support Python3 type annotation (#36544) · db8425ec
      0x45f 提交于
      * Support Py3 type annotations in @to_static
      
      * support type hint for args in func
      
      * support type hint assign
      
      * if annotation and value(Constant) are diffent type, we use value type
      
      * polish type_from_annotation()
      
      * code format
      
      * code format
      
      * remove useless commentary
      
      * fix review
      Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
      db8425ec
  15. 24 6月, 2021 1 次提交
  16. 29 9月, 2020 1 次提交
    • H
      [Dy2stat] Refine Dy2stat APIs to 2.0rc (#27430) · cc2fc938
      Huihuang Zheng 提交于
      Refine Dy2stat APIs to 2.0rc
      
      After discussion, we accepted 3 key points from reviewers:
      
      1. In 2.0rc we changed dygraph_to_static folder to dy2static
      2. Keep the three files: convert_call_func.py, convert_operators.py, variable_trans_func.py
      3. Remove convert_operators path when users import convert_xxx. 
      
      After this PR, users can import convert_xxx APIs by:
      
      `import paddle.jit.dy2static.convert_xxx`
      
      The file structure will be:
      
      ```
      jit
          dy2static
                convert_operators.py
                convert_func_call.py
                variable_trans_func.py
      ```
      
      Detail changed API in files:
      
      In python/paddle/jit/dygraph_to_static/convert_call_func.py:
      from ...fluid.dygraph.dygraph_to_static.convert_call_func import convert_call  #DEFINE_ALIAS
      
      In python/paddle/jit/dygraph_to_static/convert_operators.py:
      from ...fluid.dygraph.dygraph_to_static.convert_operators import cast_bool_if_necessary  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_assert  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_ifelse  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_len  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_and  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_not  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_or  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_print  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_dtype  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_shape  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_while_loop  #DEFINE_ALIAS
      
      In python/paddle/jit/dygraph_to_static/variable_trans_func.py:
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_fill_constant_node  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_static_variable_gast_node  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import data_layer_not_check  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable_gast_node  #DEFINE_ALIAS
      cc2fc938
  17. 09 9月, 2020 1 次提交
  18. 07 8月, 2020 1 次提交
  19. 30 7月, 2020 1 次提交
    • L
      [Dy2Stat-ErrorMessage] Add interface:create_origin_info_map and... · 452be895
      liym27 提交于
      [Dy2Stat-ErrorMessage]  Add interface:create_origin_info_map and attach_origin_info for AST node (#25627)
      
      * Add interface:create_origin_info_map and attach_origin_info for AST node. test=develop
      
      * Fix code according to comments from reviewers. test=develop
      452be895