1. 18 5月, 2023 1 次提交
  2. 09 5月, 2023 4 次提交
    • 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
    • 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. 06 5月, 2023 1 次提交
  4. 27 4月, 2023 1 次提交
  5. 24 4月, 2023 2 次提交
    • 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
  6. 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
  7. 20 4月, 2023 1 次提交
  8. 17 4月, 2023 5 次提交
  9. 14 4月, 2023 2 次提交
    • F
      1. modify set_value op, use Scalars to represent attr `values`, instead of a... · dd2a749a
      Feiyu Chan 提交于
      1. modify set_value op, use Scalars to represent attr `values`, instead of a bunch of attributs of various types; (#52408)
      
      2. add program converter and set_value op as an example, which provides the functionality to convert `paddle::framework::ProgramDesc` between old and new formats(the differences are mainly some operators with incompatible updates in the definition);
      3. program version and operator version map now are always saved when serializing `paddle::framework::ProgramDesc` to identify the version;
      3. provide an option `legacy_format=false` in  serialization of `paddle::framework::ProgramDesc`, it decided whether to convert ProgramDesc back to a legacy format, which is compatible for paddle 2.4.2 or earlier versions to load and execute;
      4. deserialization of `paddle::framework::ProgramDesc` is now automatically detecting whether the bytes it receives is in legacy format(contains any of the operators that has been incompatibly updated and have any attribute of type `Scalar`) and convert it to new format. But if you want a faithful deserialization without the automatic conversion, you can use protobuf's deserialization instead. Though it is not recommended, it can be used for the purpose of testing.
      dd2a749a
    • R
      f8d09011
  10. 13 4月, 2023 1 次提交
  11. 12 4月, 2023 4 次提交
  12. 11 4月, 2023 3 次提交
  13. 10 4月, 2023 1 次提交
  14. 09 4月, 2023 2 次提交
  15. 07 4月, 2023 3 次提交
  16. 06 4月, 2023 2 次提交
  17. 04 4月, 2023 2 次提交
  18. 03 4月, 2023 1 次提交
  19. 31 3月, 2023 2 次提交
  20. 30 3月, 2023 1 次提交
    • G
      Fix bug of c_softmax_with_cross_entropy_op_xpu_op (#52296) · 8ef97088
      Ghost Screaming 提交于
      * Support ignore_index for c_softmax_with_cross_entropy_op.
      
      * Polish code. Remove useless comments and add Testcase.
      
      * Polish code for TestCase.
      
      * Polish code.
      
      * Polish code style.
      
      * Polish code.
      
      * Change loss calculation formula and ignore_index dtype.
      
      * Polish TestCase.
      
      * Fix bug of c_softmax_with_cross_entropy_op_xpu_op. Attribute 'ignore_index'
      dtype is int64_t.
      8ef97088