1. 06 1月, 2021 1 次提交
    • H
      [Cherry-pick]cherry-pick to Release/2.0 (#30076) · 1ad7fcbf
      huangxu96 提交于
      * add fp16 check into max and avg pool (#29479)
      
      * Add ReserveSpace in dygraph batch_norm. (#29221)
      
      * Add ReserveSpace in dygraph batch_norm.
      
      * Add unittest for reservespace
      
      * add float16 into adaptive_avg_pool2d check list. (#29547)
      1ad7fcbf
  2. 05 1月, 2021 1 次提交
    • L
      [Cherry-pick 2.0] cherry pick 3 PRs about Dynamic-to-Static (#30100) · faeee3c3
      liym27 提交于
      * [cherry-pick 2.0] Fix unitest test_slice (#29740)
      
      Before this commit, test_slice use old api `dygraph_to_static_func` to use Dynamic-t-Static and use Executor explicitly,which is not recommended to users.
      After fixed, use recommended API `paddle.jit.to_static` to replace `dygraph_to_static_func`, which won't trigger the random exception on coverage CI.
      
      * [cherry-pick 2.0][Dy2Stat] Support grammar: for ele in var[idx] (#29541)
      
      Support to transformfor ele in var stms in which var is a slice of Tensor.
      
      * [cherry-pick 2.0][Dy2Stat] Fix bug for loop: a variable is used and created in loop, but used before created (#29769)
      faeee3c3
  3. 04 1月, 2021 1 次提交
  4. 31 12月, 2020 1 次提交
  5. 30 12月, 2020 1 次提交
  6. 28 12月, 2020 2 次提交
    • L
      [Cherry-Pick 2.0][Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step... · a8b6dd86
      liym27 提交于
      [Cherry-Pick 2.0][Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is negative in for-range stmts (#29519) (#29874)
      
      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
      a8b6dd86
    • H
      [Cherry-pick] Cherry-pick of PR#29579 and PR#29617 (#29904) · 63939597
      Huihuang Zheng 提交于
      * [Dy2stat] Enable jit.save to Save Without Running (#29579)
      
      Enable jit.save to Save Without Running.
      
      * Modify CublasHandleHolder to Fix Random Unittest Failure. test=develop (#29617)
      
      Modify CublasHandleHolder from using PADDLE_ENFORCE_CUDA_SUCCESS to PADDLE_RETRY_CUDA_SUCCESS to fix random unittest failure. We checked that the unittest log showed CUDA allocation error at this file, which may due to GPU not enough. We fixed similar failure in the past, so we applied PADDLE_RETRY_CUDA_SUCCESS here.
      63939597
  7. 22 12月, 2020 1 次提交
  8. 17 12月, 2020 2 次提交
  9. 08 12月, 2020 1 次提交
  10. 07 12月, 2020 1 次提交
  11. 04 12月, 2020 6 次提交
  12. 03 12月, 2020 2 次提交
  13. 02 12月, 2020 1 次提交
  14. 01 12月, 2020 2 次提交
  15. 30 11月, 2020 3 次提交
    • Y
      fix docs (#29097) · a069e1ca
      yaoxuefeng 提交于
      a069e1ca
    • L
      Check whether there is any inplace operation affecting gradient calculation. (#27901) · 865a4598
      liym27 提交于
      * Add a class TensorInplaceVersion to count the inplace version and put it in framework::Tensor instead of Allocation or Variable.
      
      * Add a new attribute `_inplace_version` for VarBase.
      
      * Raise exception if an inplace operation can result in incorrect gradient computation.
      
      * Add a new interface _bump_inplace_version() for VarBase to bump the version whenever the Tensor is modified through an inplace operation.
      
      * For api assign, call _bump_inplace_version() when it's an inplace operation inn dynamic mode.
      
      * Use original var_wrapper if the inplace_version is not changed.
      
      * Replace SnapshotVarWrapperList with SnapshotVarWrapper to optimize performane.
      865a4598
    • W
      save model after jit.load (#28748) · 1476e1f9
      WeiXin 提交于
      * Changed a variable name error
      
      * Add comments
      
      * Move member functions of TranslatedLayer out of function
      
      * edit code according to review
      
      * Edit input argument of '_run_static_graph'
      
      * reset due to Segmentation fault
      
      * rename variables when stitching graph
      
      * modify code according CI
      
      * Add comments to '__i_m_p_l__'
      
      * remove blanks befor 'Get...'
      
      * edit code according to review
      
      * Add a comment to '_execution_method_creator'
      
      * Edit a comment to '_execution_method_creator'
      1476e1f9
  16. 28 11月, 2020 2 次提交
  17. 27 11月, 2020 3 次提交
  18. 26 11月, 2020 2 次提交
  19. 25 11月, 2020 2 次提交
  20. 24 11月, 2020 5 次提交
    • C
      Polish parallel api impl & doc details (#28980) · bb16c251
      Chen Weihang 提交于
      * polish parallel api impl & doc details
      
      * add unittest for coverage
      
      * remove spawn test in py2.7
      
      * add parallel api into white list
      bb16c251
    • C
      fix some docs (#29011) · 018e1699
      Chen Long 提交于
      * fix some docs test=develop;test=document_fix
      
      * add code example test=develop;test=document_fix
      
      * fix code example test=develop;test=document_fix
      
      * fix code example test=develop;test=document_fix
      
      * fix code example test=develop;test=document_fix
      018e1699
    • H
      [Dy2stat] Add Tuple as Assign Target for Tensor Shape (#28775) · 5b339262
      Huihuang Zheng 提交于
      Add support for using tuple as tensor.shape (For example: a, b, c, d = x.shape)
      5b339262
    • L
      Upgrade string literals to raw string (#28989) · 3815d7aa
      Leo Chen 提交于
      * upgrade comment string to raw string
      
      * fix string in
      
      * fix string with ' '
      
      * revert update on comments
      
      * upgrade only necessary
      
      * fix sample code checker
      
      * fix comments with '''
      3815d7aa
    • L
      [Dynamic-to-Static] Fix bug of convert_logical_and/convert_logical_or: the... · 85292e0b
      liym27 提交于
      [Dynamic-to-Static] Fix bug of convert_logical_and/convert_logical_or: the operands are executed sequentially(#28993)
      
        
        1) The operands are executed sequentially according to the running logic of Python.
        
        2) If the left hand operand is True(for convert_logical_or)/False(for convert_logical_and), the right hand operand should be executed.
      85292e0b