1. 06 8月, 2020 1 次提交
    • S
      add paddle.utils.deprecated. (#25912) · c8d0d141
      Shibo Tao 提交于
      * add paddle.utils.deprecated.
      
      * add docstring. test=develop
      
      * add alias paddle.utils.deprecated. test=develop
      
      * rm deprecated in python/paddle/fluid/annotations.py. test=develop
      
      * 1. check version before warning. 2. bug fix. test=develop
      
      * bug fix. test=develop
      
      * use paddle.fluid.require_version. test=develop
      
      * fix doc
      
      * fix doc. test=develop
      
      * fix doc. test=develop
      
      * bug fix. test=develop
      
      * use packaging.version. test=develop.
      
      * enhance doc. test=develop
      
      * add compare_version function. test=develop
      
      * add version.py. test=develop
      
      * remove packaging. test=develop
      
      * move compare_version to deprecated.py. test=develop
      
      * remove print. test=develop
      
      * fix. test=develop
      
      * fix. test=develop
      
      * fix. test=develop
      
      * fix. test=develop
      
      * inline. test=develop
      
      * fix. test=develop
      c8d0d141
  2. 04 8月, 2020 1 次提交
  3. 29 7月, 2020 1 次提交
  4. 14 7月, 2020 1 次提交
    • C
      [Dy2static] Refactor ProgramTranslator save_inference_model API (#24989) · 41d22472
      Chen Weihang 提交于
      * experimental refactoring, test=develop
      
      * add TranslatedLayer & remove StaticModelRunner, test=develop
      
      * revert tracedlayer change, test=develop
      
      * fix test_mnist unittest error, test=develop
      
      * add doc & examples, test=develop
      
      * polish doc details, test=develop
      
      * add imperative.jit module, test=develop
      
      * change TranslatedLayer pos, test=develop
      
      * adjust jit module import path, test=develop
      
      * polish doc based review result
      
      * add SaveLoadConfig.separate_params to save paraams separately
      
      * add Layer.buffer support, test=develop
      
      * polish doc details based review result, test=develop
      
      * polish details baesd review comments, test=develop
      
      * add empty str check for param, test=develop
      
      * add unittests, test=develop
      
      * polish details based review comment, test=develop
      
      * remove blanks in comment, test=develop
      
      * polish doc details, test=develop
      
      * update imperative doc link, test=develop
      
      * add api attr for load, test=develop
      41d22472
  5. 30 6月, 2020 1 次提交
    • H
      [Dy2stat] Support Various-Length Return Grammar in Dy2stat (#25249) · 5e8e6dad
      Huihuang Zheng 提交于
      Support Various-Length Return Grammar in Dy2stat. This PR is a follow-up of https://github.com/PaddlePaddle/Paddle/pull/25176 .
      
      The basic idea is putting no-value placeholder variables at `return` statement to make all `return` statement have same length, after that the static graph can have fixed fetch output (code at return_transformer.py). Then remove those no-value placeholder when we finally return dygraph result (code at partial_program.py).
      
      However, various length return in Bert model is still not supported. The dy2stat can change the code as I wish but some ops which check shape at compile time (e.g. Reshape, MatMul) will throw error because of the no-value-placeholder may not have the required shape. Is this a matter? To me, those no-value placeholder will be replaced as really values meeting shape requirements at run time, so I think the solution should be some way to do the compile-time checking. By the way, every time when we have dynamic shape, it often causes problem in dy2stat. We should find a way to handle it in the future.
      
      Fixing various return in Bert is my TODO thing and I will also find some other existing models for verification.
      5e8e6dad
  6. 29 6月, 2020 1 次提交
    • A
      [Dy2stat]Support buffers and register_buffer in Layer (#24888) · 02adf68d
      Aurelius84 提交于
      * support to save varBase created in __init__ test=develop
      
      * polish code test=develop
      
      * refine to_static_var test=develop
      
      * refine warning test=develop
      
      * add unitteset for to_static_var test=develop
      
      * fix logger test=develop
      
      * polish buffers en doc test=develop
      
      * fix param_guard test=develop
      
      * refine en doc test=develop
      02adf68d
  7. 19 6月, 2020 2 次提交
  8. 28 5月, 2020 1 次提交
  9. 27 5月, 2020 1 次提交
  10. 15 5月, 2020 2 次提交
  11. 09 5月, 2020 2 次提交
  12. 08 5月, 2020 1 次提交
  13. 06 5月, 2020 1 次提交
    • L
      [Dy2Stat]Support list pop (#24250) · ac9a7eee
      liym27 提交于
      * Replace dygraph_to_static_func with @declarative or program_translator.get_func in test_list.py
      
      * Add comments in ConditionalBlock.
      
      * Support list pop last item. 
      
      * Support pop the i-th item. 
      
      * Support an empty tensor array as Input in assign op and set the kernel type is float.
      ac9a7eee
  14. 30 4月, 2020 1 次提交
  15. 27 4月, 2020 1 次提交
    • C
      [dy2static] Add print transformer and unify print format (#24068) · 9b851ba2
      Chen Weihang 提交于
      * add print transformer & unify print format, test=develop
      
      * remove using of dygraph_to_static_func, test=develop
      
      * remove python stdout capture, test=develop
      
      * fix compatibility problems for PY2, test=develop
      
      * fix detail error, test=develop
      
      * fix type analysis bug, test=develop
      
      * fix print tuple compatible error in PY2, test=develop
      
      * replace get_func to declarative, test=develop
      
      * fix detail bug, test=develop
      
      * fix some detail problems, test=develop
      
      * change visit_call in print transformer, test=develop
      9b851ba2
  16. 19 4月, 2020 1 次提交
  17. 18 4月, 2020 1 次提交
  18. 11 4月, 2020 1 次提交
  19. 10 4月, 2020 1 次提交
  20. 09 4月, 2020 1 次提交
  21. 01 4月, 2020 1 次提交
    • H
      [Dy2stat] Add data_layer_not_check (#23351) · 1d4d89ba
      Huihuang Zheng 提交于
      1. Add data_layer_not_check because it is needed in dygraph_to_static where input can be variable size
      2. Remove warnings in static analysis because python cannot do exact static analysis
      1d4d89ba
  22. 26 3月, 2020 2 次提交
  23. 25 3月, 2020 1 次提交
  24. 23 3月, 2020 1 次提交
  25. 20 3月, 2020 1 次提交
  26. 19 3月, 2020 1 次提交
  27. 04 3月, 2020 1 次提交