1. 23 2月, 2021 1 次提交
  2. 22 2月, 2021 1 次提交
  3. 20 2月, 2021 1 次提交
    • K
      [cherry pick] dataloader fix (#31028) · 1ac6a093
      Kaipeng Deng 提交于
      * fix dataloader collate return list mix tensor and numpy array. test=develop
      
      * remove numpy array check in single-process dataloader. test=develop
      1ac6a093
  4. 19 2月, 2021 1 次提交
    • H
      [Cherry-pick][Dy2stat] Add Support for Tuple in Loop and Refine Error Message (#31036) · 9ad9f357
      Huihuang Zheng 提交于
      * Add Support for Tuple in for Loop (#30998)
      
      Dy2stat didn't support tuple as iteration variable in the past. This PR added there main cases:
      
             1). Non-enumerate case: for var1, var2 in var|var.numpy() will be re-written as:
                for FOR_ITER_TUPLE_PREFIX_x in var | var.numpy():
                  var1 = FOR_ITER_TUPLE_PREFIX_x[0]
                  var2 = FOR_ITER_TUPLE_PREFIX_x[1]
              2). Enumerate out tuple case: for t in enumerate(var|var.numpy) will be rewritten as:
                for FOR_ITER_TUPLE_INDEX_PREFIX_x, FOR_ITER_TUPLE_PREFIX_x in enumerate(var|var.numpy):
                  t = (FOR_ITER_TUPLE_INDEX_PREFIX_x, FOR_ITER_TUPLE_PREFIX_x)
              3). Enumerate inner tuple case: for i, (var1, (var2, va3)) in enumerate(var|var.numpy()) will
              be re-written as:
                for i, FOR_ITER_TUPLE_PREFIX_x in var | var.numpy():
                  var1 = FOR_ITER_TUPLE_PREFIX_x[0]
                  var2 = FOR_ITER_TUPLE_PREFIX_x[1][0]
                  var3 = FOR_ITER_TUPLE_PREFIX_x[1][1]
      
      * Refine fake_interface Error Message (#30981)
      
      Refine fake_interface Error Message
      9ad9f357
  5. 18 2月, 2021 1 次提交
  6. 07 2月, 2021 2 次提交
  7. 05 2月, 2021 2 次提交
  8. 04 2月, 2021 1 次提交
  9. 03 2月, 2021 1 次提交
    • L
      [cherry-pick] Update gather_tree (#30784) · a44b65de
      liu zhengxi 提交于
      * upgrade gather_tree to core.ops (#30697)
      
      * upgrade gather_tree to core.ops
      
      * update gather_tree unittests
      
      * update gather_tree doc (#30693)
      
      * update gather_tree doc, test=document_fix
      
      * update sample code, test=document_fix
      
      * remove tensor type, test=document_fix
      a44b65de
  10. 02 2月, 2021 1 次提交
  11. 20 1月, 2021 5 次提交
  12. 19 1月, 2021 9 次提交
  13. 18 1月, 2021 5 次提交
    • G
      [cherry-pick]Modify the calculation logic of LambOptimizer (#29313) (#30510) · b3fa899b
      guofei 提交于
      * Modify the calculation logic of LambOptimizer (#29313)
      
      * Modify the calculation logic of LambOptimizer
      
      * Modify the calculation logic of LambOptimizer
      
      * Modify the calculation logic of LambOptimizer
      b3fa899b
    • C
      [cherry-pick] add pad and concat double grad #29549 (#30432) · 5e4d54a1
      ceci3 提交于
      * add pad and concat double grad
      
      * resolve conflict
      5e4d54a1
    • Z
      [cherry-pick] improve perfomance of cast and tril op (#30498) · de003cee
      Zhang Ting 提交于
      * add fp16 support for tril_triu op (#30186)
      
      * add VecCastCUDAKernel (#30296)
      Co-authored-by: Nfurnace <34057289+windstamp@users.noreply.github.com>
      de003cee
    • 1
      test=develop, fix fleet.metric (#30438) (#30473) · 2c3799d1
      123malin 提交于
      * test=develop, fix fleet.metrics(mse, rmse, mae)
      2c3799d1
    • P
      Cherry-pick PR 30103. Add Inplace strategy (Output reuse Input Varbase) in... · 27c2f1ea
      pangyoki 提交于
      Cherry-pick PR 30103. Add Inplace strategy (Output reuse Input Varbase) in dygraph (#30103) (#30496)
      
      * add view strategy on squeeze,unsqueeze,reshape,flatten
      
      * add squeeze unittest
      
      * add unittests
      
      * use View strategy as name rather than Reuse Allacation
      
      * fix view api doc
      
      * fix format
      
      * use core.ops when input of reshape2 is Tensor
      
      * fix test_cross_entropy_loss error because of reshape2
      
      * fix test_cross_entropy_loss error because of reshape2
      
      * add inplace strategy
      
      * add elementwise_add sub
      
      * let backward op not use inplace
      
      * grad op do not use inplace
      
      * fix memory increase error and add leaf error message
      
      * delete selected_rows
      
      * change op_function
      
      * little change
      
      * solve HandleViewBetweenInputAndOutput
      
      * add unittest and leaf error message
      
      * merge view error
      
      * optimize op_function_generator format and support sum inplace op
      
      * fix format of basic_engine
      
      * fix format for framework
      
      * little change of variable wrapper
      
      * add reshape, squeeze, unsqueeze, scatter api
      
      * add relu elu tanh softmax inplace api
      
      * fix test_squeeze_op unittest
      
      * fix test_relu_op unittest
      
      * fix comment problems
      
      * delete sample code of inplace api
      
      * add reference of grad_pending_nodes in basic_engine
      
      * fix unittest name
      
      * add inplace apis into wlist
      
      * fix error message
      
      * add PADDLE_ENFORCE for set grad op twice
      
      * fix head file error
      27c2f1ea
  14. 15 1月, 2021 4 次提交
  15. 14 1月, 2021 4 次提交
    • C
      [Cherry-pick] Fix prune input bug of jit.save #30425 · 2cdc36f4
      Chen Weihang 提交于
      [Cherry-pick] Fix prune input bug of jit.save
      
      cheryy-pick of #30384
      2cdc36f4
    • Q
      optimize memcpy perf for kunlun (#30291) (#30382) · 9de42be2
      QingshuChen 提交于
      * optimize memcpy perf for kunlun (#30291)
      
      * optimize memcpy perf for kunlun
      
      * remove useless unitest for kunlun mean
      
      * minor
      
      * fix bug that cann't find mkldnn(kunlun) (#30394)
      9de42be2
    • L
      [cherrypick 2.0] add double grad for conv_transpose and depthwise_conv (#30429) · 1552343a
      LielinJiang 提交于
      * Add double grad for conv_transpose (#29706)
      
      * add double grad for conv_transpose
      
      * register cudnn conv double grad for depthwise conv (#29807)
      1552343a
    • C
      fix bug of celoss when using ignore_index and reduction (#30395) · c22ee575
      chajchaj 提交于
      * fix bug of celoss when using ignore_index and reduction (#30180)
      
      * fix bug of using ignore_index and reduction,test=develop
      
      * fix bug of celoss when using ignore_index and reduction, test=develop
      
      * improve performance when ignore_index=-100, test=develop
      
      * add test in test_cross_entropy_loss.py for coverage rate, test=develop
      
      * rm comment in test_cross_entropy_loss.py, test=develop
      
      * del  hard code of "float64" in python/paddle/nn/functional/loss.py, test=develop
      
      * change mask to a more simplified implementation, test=develop
      
      * del comment in python/paddle/nn/functional/loss.py, test=develop
      
      * del hard code and change mask to a more simplified implementation, test=develop
      
      * change mask to a more simplified implementation, test=develop
      
      * change mask to a more simplified implementation, test=develop
      
      * fix bug of celoss when using ignore_index and reduction (#30180)
      
      * fix bug of using ignore_index and reduction,test=develop
      
      * fix bug of celoss when using ignore_index and reduction, test=develop
      
      * improve performance when ignore_index=-100, test=develop
      
      * add test in test_cross_entropy_loss.py for coverage rate, test=develop
      
      * rm comment in test_cross_entropy_loss.py, test=develop
      
      * del  hard code of "float64" in python/paddle/nn/functional/loss.py, test=develop
      
      * change mask to a more simplified implementation, test=develop
      
      * del comment in python/paddle/nn/functional/loss.py, test=develop
      
      * del hard code and change mask to a more simplified implementation, test=develop
      
      * change mask to a more simplified implementation, test=develop
      
      * change mask to a more simplified implementation, test=develop
      c22ee575
  16. 13 1月, 2021 1 次提交