1. 01 12月, 2022 1 次提交
  2. 28 11月, 2022 1 次提交
  3. 29 8月, 2022 1 次提交
  4. 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
  5. 28 6月, 2022 1 次提交
  6. 27 6月, 2022 1 次提交
  7. 23 6月, 2022 1 次提交
  8. 11 6月, 2021 1 次提交
  9. 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
  10. 14 4月, 2020 1 次提交
  11. 10 4月, 2020 1 次提交
  12. 23 3月, 2020 1 次提交
  13. 17 9月, 2018 1 次提交
  14. 03 9月, 2018 1 次提交
  15. 15 8月, 2018 1 次提交
  16. 26 7月, 2018 1 次提交
  17. 18 6月, 2018 1 次提交
  18. 09 6月, 2018 1 次提交
  19. 24 5月, 2018 1 次提交
  20. 18 5月, 2018 1 次提交
  21. 17 5月, 2018 2 次提交
  22. 16 5月, 2018 1 次提交
  23. 12 5月, 2018 1 次提交
    • Q
      Add inferencer infer (#10445) · 2a971f30
      Qiao Longfei 提交于
      * add Inference.infer
      
      * optimize code
      
      * update no_test_word2vec_new_api.py
      
      * update trainer
      
      * split check_and_get_place
      
      * use inference_program to save inference model in Trainer
      
      * update demo
      
      * update save_inference_model
      
      * clean code
      2a971f30
  24. 05 5月, 2018 1 次提交
    • J
      Trainer save load params (#10386) · bd66eed5
      Jeff Wang 提交于
      * Load/save the params from the params_path
      
      * Switch to use load_persistables and save_persistables
      
      * Instaed of setup the executor to run program and scope. Pass the program to the load_persistables
      bd66eed5
  25. 03 5月, 2018 1 次提交
    • H
      improve trainer API · a66052c6
      Helin Wang 提交于
      - The trainer and inferencer will load params from disk if param_path
        argument is not None in their constructor.
      
      - Remove params.py, we will expose core.Scope to the user if needed
        (e.g., for GAN). Currently we will not expose it, unless we clearly
        know doing so can support GAN.
      
      - Add `save_params` to Trainer (a TODO item).
      
      - rename "network" to "program"
      a66052c6
  26. 02 5月, 2018 4 次提交
  27. 12 2月, 2018 1 次提交
  28. 21 1月, 2018 1 次提交
    • D
      "fix decode bug" (#7711) · e983cc90
      dzhwinter 提交于
      * "fix decode bug"
      
      * "follow commnet"
      
      * "fix error"
      
      * "fix hook bug"
      
      * fix based comment
      
      * fix copyright
      
      * fix based on comment
      e983cc90
  29. 15 1月, 2018 1 次提交
    • D
      Feature/hooks (#7513) · b9b75377
      dzhwinter 提交于
      * add copyright hook
      
      * add copyright hook
      
      * refine copyright hook
      
      * "test copyright hook"
      
      * fix check style
      
      * fix ci
      b9b75377
  30. 12 11月, 2016 1 次提交
  31. 28 9月, 2016 1 次提交