1. 10 5月, 2023 2 次提交
    • Z
      [Cherry-pick 2.5][Zero-Dim] paddle.static.data, squeeze, unbind, unstack,... · fecea4c5
      zqw_1997 提交于
      [Cherry-pick 2.5][Zero-Dim]  paddle.static.data, squeeze, unbind, unstack, gather_nd and einsum support 0D (#53602)
      
      * add test cases, test=allcase
      
      * fix test cases, test=allcase
      
      * fix test cases, test=allcase
      
      * assert_allclose, test=allcase
      
      * 1e-5 to 1e-4, test=allcase
      
      * change rtol from 1e-4 to 1e-3, test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * fix test cases, test=allcase
      
      * fix test cases, test=allcase
      
      * modify the test_squeeze to not use Tensor type axis, test=allcase
      
      * add grad check for unbind and unstack, test=allcase
      
      * check for squeeze axis tensor type, test=allcase
      
      * fix bug, test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      fecea4c5
    • G
      add and open 0D test pnorm and cond (#53616) · 7edcd05c
      GGBond8488 提交于
      7edcd05c
  2. 09 5月, 2023 7 次提交
    • N
      [AMP] fix static promote (#53439) (#53641) · c27e6d2f
      niuliling123 提交于
      fix static promote
      将因性能有问题而放入unsupprot_list中的算子放入黑名单中,以保证在O2模式下,只有3种场景权重会保持fp32
      c27e6d2f
    • Z
      add compare accuracy api (#53646) · 22678065
      zhangkaihuo 提交于
      cherry-pick #53430
      22678065
    • Z
      [Cherry-pick 2.5][Zero-Dim] paddle.to_tensor support 0D (#53599) · 2aefc45b
      zqw_1997 提交于
      * fix doc erros, test=allcase
      
      * conflict
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * test=allcase
      
      * fix doc erros, test=allcase
      
      * fix the to_tensor error
      2aefc45b
    • zhouweiwei2014's avatar
    • G
      【cherry-pick】Op test add complex support (#53604) · c8504d86
      GGBond8488 提交于
      * add complex support for  optest
      
      * add complex grad test
      
      * append one
      
      * move some debug info
      
      * move some debug info
      
      * move some debug info
      
      * move some debug info
      
      * add more complex test
      
      * Fix naming ambiguity
      
      * Revert "add more complex test"
      
      This reverts commit dbcb0516b8e53ba42e2d6089878a39b395345969.
      
      * change backward gradient, add TODO
      c8504d86
    • zhouweiwei2014's avatar
      [cherry-pick 2.5][Zero-Dim] support paddle.sum/mean/loss api output 0D (#53601) · b6e23774
      zhouweiwei2014 提交于
      * [Zero-Dim] fix functool.reduce more safe with intial value, to support empty list (#53182)
      
      * [Zero-Dim] support 0d tensor for shape and squeeze onednn kernel (#52832)
      
      * support 0d tensor for shape and squeeze onednn kernel
      
      * set python api for shape op ut
      
      * [Zero-Dim] distributed scatter/all_to_all support input 0D tensor (#53186)
      
      * [Zero-Dim] Support paddle.sum/mean/loss api output 0D,test=allcase (#52739)
      
      * [CINN Support 0D-Tensor] CINN supports 0D-Tensor with trick temporarily (#53382)
      
      * [CINN Support 0D-Tensor] CINN supports 0D-Tensor with trick temporarily
      
      * Add unittest
      
      * [CINN Support 0D-Tensor] CINN hack squeeze2 with trick temporarily (#53454)
      
      * fix test_autograd_dynamic (#53473)
      Co-authored-by: Nzhwesky2010 <zhouwei25@baidu.com>
      
      ---------
      Co-authored-by: NYangQun <qun.yang@intel.com>
      Co-authored-by: NHongyuJia <jiahongyu@baidu.com>
      Co-authored-by: NHydrogenSulfate <490868991@qq.com>
      b6e23774
    • J
      [Cherry-pick] zero-dim: support 0-D for getitem/setitem (#53441) · 767e7b3f
      JYChen 提交于
      * support 0-D output and 0-D as indice in __getitem__
      
      * fix tests
      
      * fix inference and UT
      
      * add unittest for setitem
      
      * fix xpu test
      
      * fix xpu 0-d
      
      * fix right value is 0d and index is List/Tensor
      
      * Hack__getitem__ from 0-d to 1-d with FLAGS_set_to_1d
      
      * change PHI_DECLARE_xxx to DECLARE_xxx since the change not merged to 2.5
      
      * hack 1-D tensor to Scalar
      
      * throw warning at __getitem__, not slice_utils
      767e7b3f
  3. 08 5月, 2023 2 次提交
    • Y
      Cherry-pick #53432 and #53556 (#53576) · 6583c390
      Yiqun Liu 提交于
      * Add fused_gate_attention API. (#53432)
      * Add PADDLE_THROW in take_along_axis kernel when the datatype of index is wrong. (#53556)
      6583c390
    • G
      [Cherry-pick]Cherry pick 0d output (#53538) · 2d02b0c1
      GGBond8488 提交于
      * add 0D output support for inalg.slogdet,test=allcase
      
      * fix zerom dime test error test=allcase
      
      * fix test error test=allcase
      
      * add static backward test, test=allcase
      
      * support_0D_output_for_matrix_rank_multi_dot, test=allcase
      
      * add 0D output test for matrox_rank and mutli_dot test=allcase
      
      * fix assert error ,test=allcase
      
      * fix test error, test=allcase
      
      * fix other test error, test=allcase
      
      * fix other test error, test=allcase
      
      * fix test error, test=allcase
      
      * fix matrix_rank and multi dot test err test=allcase
      
      * fix test error test=allcase
      
      * fix test zero dim test, test=allcase
      
      * add static backward test for multi_dot, test=allcase
      
      * add tol 2d broadcast test case, test=allcase
      
      * fix test error test=allcase
      
      * fix test error test=allcase
      
      * test=allcase
      
      * support_0d_output_for_linalg.norm
      
      * fix test error test=allcase
      
      * fix 0D test
      
      * fix test error test=allcase
      
      * fix test error test=allcase
      
      * fix tets,test=allcase
      
      * fix error,test=allcase
      
      * fix errors ,test=allcase
      
      * add static backward , test=allcase
      
      * add static backwward test, test=allcase
      
      * slogdet_support_0D_output
      
      * add new case
      
      * fix tests, test=allcase
      
      * cherry-pick
      
      * cherry-pick
      
      * fix trace gpu kernel 0d error, test=allcase
      
      * fix windows error, test=allcase
      
      * add matrixrank cherry-pick
      2d02b0c1
  4. 06 5月, 2023 2 次提交
  5. 05 5月, 2023 3 次提交
  6. 28 4月, 2023 1 次提交
  7. 27 4月, 2023 2 次提交
    • zhouweiwei2014's avatar
      [cherry-pick2.5] [Zero-Dim] Support... · b6996598
      zhouweiwei2014 提交于
      [cherry-pick2.5] [Zero-Dim] Support all/any/min/max/prod/logsumexp/amax/amin/some loss output 0D (#53192)
      
      b6996598
    • W
      [Cherry-Pick]Support output 0D for... · f84ac449
      wangfengsheng1999 提交于
      [Cherry-Pick]Support output 0D for is_empty/as_complex/inner/dot/rank/tensordot/squeeze_/static.accuracy/static.auc/metric.accuracy (#53199)
      
      * support output 0D for is_empty/as_complex/inner/dot/rank/tensordot/squeeze_/static.accuracy/static.auc/metric.accuracy
      
      * test_dot_py
      
      * test_dot_py
      f84ac449
  8. 26 4月, 2023 1 次提交
  9. 25 4月, 2023 3 次提交
  10. 24 4月, 2023 3 次提交
    • J
      Revert "Cherry pick getitem/setitem 0d (#53125)" (#53265) · 50f61213
      JYChen 提交于
      This reverts commit a79c04f3.
      50f61213
    • K
      [CherryPick] [BugFix] wrong match between depend and c_allreduce_sum (#53271) · bfd1dd77
      kangguangli 提交于
      * fix bug: wrong match between depend and c_allreduce_sum
      
      (cherry picked from commit 327da8035bdfee3ec2f016e8cda29ec8ee89bc95)
      
      * fix codestyle
      
      (cherry picked from commit bdb1483081adc41aa47d3f7df257f63f1cff399b)
      
      * fix bug
      
      (cherry picked from commit 373ba5253c45ac019ffaa8d69d4ce9e02cb9ae79)
      
      * add c_sync_calc_stream back
      
      (cherry picked from commit 9933d7533ae1f307b76f24a33bf0c59e4c8e8f01)
      
      * fix
      
      (cherry picked from commit abc9a31beaa326f6a566c08749419bb33e209672)
      
      * revert
      
      (cherry picked from commit 07bc98dbf7c9df43910fa6e86a6a2698731dffb2)
      
      * use flag to control
      
      (cherry picked from commit 8e5682a4b99759cbe35a49f3f8c9db735dc8fee4)
      
      * fix for code coverage
      
      (cherry picked from commit fe7e61bdef24fbc43e2f4e1cb67f68963c957cf1)
      bfd1dd77
    • N
      [cherry-pick] Add debugging api and python stack (#53217) · 1e7efd81
      niuliling123 提交于
      Print the forward's stack when backward op has nan/inf and FLAGS_check_nan_inf_level = 0
      Delete temp param in eager_gen
      1e7efd81
  11. 23 4月, 2023 1 次提交
    • J
      Cherry pick getitem/setitem 0d (#53125) · a79c04f3
      JYChen 提交于
      * support 0-D output and 0-D as indice in __getitem__
      
      * fix tests
      
      * fix inference and UT
      
      * add unittest for setitem
      
      * fix xpu test
      
      * fix xpu 0-d
      a79c04f3
  12. 21 4月, 2023 2 次提交
  13. 20 4月, 2023 4 次提交
  14. 19 4月, 2023 1 次提交
  15. 17 4月, 2023 6 次提交