1. 14 12月, 2020 3 次提交
    • L
      [Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is... · 0cad1152
      liym27 提交于
      [Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is negative in for-range stmts (#29519)
      
      1. Fix error in _build_cond_stmt of for-range stmts. 
      
      2. Support that step value is negative in for-range stmts
      
      3. Fix code because of the diff between Py2 and Py3
      0cad1152
    • H
      Fix Windows Unittest (#29543) · 831e9135
      Huihuang Zheng 提交于
      Fix 3 Windows Unittests
      
      test_fuse_all_reduce_pass: Paddle cannot run multiple-GPU on Windows so set single visible GPU flag
      test_feed_data_check_shape_type: Paddle cannot run multiple-GPU on Windows so set single visible GPU flag
      test_tsm: Winodws GPU size is not enough so decrease batch size and data size.
      831e9135
    • G
      Fix precision problem (#29567) · 08f24a31
      GeminiCarrie 提交于
      * Fix a bug when running on an operating system without "bash."
      
      * add execution condition
      
      * for ci-coverage
      
      * get cpu information to check the precision problem
      
      * Update compilation environment for musl version
      
      * update dependencies
      
      * remove test code
      
      check cpu info
      
      remove test code
      
      review
      
      * update alpine and third_party denpendencies
      
      * add newline for ci Code format
      08f24a31
  2. 04 12月, 2020 2 次提交
  3. 03 12月, 2020 1 次提交
    • L
      [Dy2stat] Add a decorator paddle.jit.not_to_static to support that not to... · b9a8ebd5
      liym27 提交于
      [Dy2stat] Add a decorator paddle.jit.not_to_static to support that not to convert a function in Dynamic-to-Static. (#29253)
      
      Usage scenarios:A function could have run successfully in static mode,  you can use it to decorate a function in the following cases:
        1. An unknown error occurs in the dynamic-to-static conversion process of the function;
        2. In the internal implementation of the function, it has two branches: dynamic branch and static branch;
        3. Users don't want to convert the function in the process of dynamic to static.
      b9a8ebd5
  4. 02 12月, 2020 1 次提交
    • H
      [Dy2stat] Fix PaddleGan Deoldify Model Dy2stat Problems (#29226) · aec05d81
      Huihuang Zheng 提交于
      This PR fixes several problems in dy2stat for Deoldify model in PaddleGan.
      
      In model, software engineer wrote if x.shape == y.shape, the Tenser shape is a tuple in dygraph so the == returns True/False, but in static graph the == becomes element-wise comparison, which is a different behavior. In this PR we reduce the element-wise comparison result.
      
      If software engineer write computations which uses parameters in hooks, the static graph can loss the parameter variable because we put param_guard at forward of a Layer. In this PR we made param_guard cover pre-hook and post-hook.
      
      In PaddleGan, software engineer calculated some parameter values in __init__ by running some dygraph code. Those code also run during dy2stat. So some variables may be assign as a VarBase (Tensor) first and then Variable, which raised an error. We fixed the bug in this PR by handling the case.
      
      TODO: We just added testcase for the 1. shape comparison. Should add test case for 2. and 3. But since we are chasing 2.0RC, I will do it in the near future PR
      aec05d81
  5. 30 11月, 2020 2 次提交
  6. 28 11月, 2020 4 次提交
  7. 27 11月, 2020 3 次提交
  8. 26 11月, 2020 1 次提交
  9. 25 11月, 2020 3 次提交
  10. 24 11月, 2020 4 次提交
  11. 20 11月, 2020 2 次提交
  12. 19 11月, 2020 4 次提交
  13. 17 11月, 2020 1 次提交
  14. 13 11月, 2020 1 次提交
  15. 11 11月, 2020 1 次提交
  16. 09 11月, 2020 1 次提交
  17. 08 11月, 2020 1 次提交
    • Y
      exec ut no more than 15s 1 (#28439) · ba075632
      YUNSHEN XIE 提交于
      * disable ut test_parallel_executor_fetch_isolated_var,test=document_fix
      
      * test for limiting ut exec time as 15S
      
      * fix an error caused by cannot find ut
      
      * fix some error
      
      * can not find test_transformer
      
      * fix error caused by ut not run in windows
      
      * fix error caused by Compiler Options
      
      * fix error caused by setting timeout value as 15 in python/paddle/tests/CMakeLists.txt
      
      * setting timeout value to 120s for old ut
      
      * add the timeout value setting
      
      * fix error caused by ut only run in coverage_ci
      
      * add analyzer_transformer_profile_tester
      
      * fix some error
      
      * fix some error
      
      * fix error with inference option
      
      * fix error with inference option setting as ON_INFER
      
      * add some ut to set timeout
      
      * modified some option
      
      * fix error
      
      * fix some timeout error
      
      * fix error
      
      * fix error
      
      * fix timeout for test_analyzer_bfloat16_resnet50
      
      * fix error
      
      * setting timeout properity for some ut
      
      * first pr for new ut timeout as 15S
      ba075632
  18. 06 11月, 2020 1 次提交
    • W
      refine jit.save/load to add support for other method, not only forward (#28376) · b5e662f8
      WeiXin 提交于
      * refine jit.save/load to add support for other method, not only forward
      
      * refine the code based on unit tests
      
      * Add unit test for the code
      
      * Add unit test for the code
      
      * Modify the code according to the unit test
      
      * Delete useless comments, save only one info file, etc.
      
      * remove static_mode_white_list.pyc
      
      * edit the code that generate 'extra_var_info'
      b5e662f8
  19. 05 11月, 2020 1 次提交
  20. 27 10月, 2020 1 次提交
    • C
      Enrich the python error types of paddle & polish format (#28124) · 813b2ade
      Chen Weihang 提交于
      * add multiple exception type
      
      * define all exception & polish compile pystack
      
      * mapping paddle error to python exception
      
      * polish static mode error format
      
      * fix failed unittests
      
      * fix dytostatic test_error
      
      * fix check_nan_inf failed
      
      * add unittest for coverage
      
      * revert some code try to solve compile error
      
      * refactor enforce & error change
      
      * polish code & add unittest
      813b2ade
  21. 26 10月, 2020 1 次提交
  22. 22 10月, 2020 1 次提交