1. 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
  2. 14 4月, 2023 1 次提交
  3. 30 3月, 2023 1 次提交
  4. 25 3月, 2023 1 次提交
  5. 24 3月, 2023 1 次提交
  6. 06 1月, 2023 1 次提交
    • J
      [zero-dim] Support 0-d for kthvalue and mode (#49340) · 292738f3
      JYChen 提交于
      * add 0-d support for paddle.kthvalue
      
      * add 0-d support for paddle.mode
      
      * fix coverage test for device
      
      * fix check-bug in windows
      
      * change axis check from LT to LE
      
      * add shape & value check for grad when input is 0d tensor
      292738f3
  7. 20 12月, 2022 1 次提交
  8. 19 12月, 2022 1 次提交
  9. 29 11月, 2022 1 次提交
  10. 23 10月, 2022 1 次提交
  11. 27 9月, 2022 1 次提交
  12. 17 8月, 2022 1 次提交
    • N
      [CodeStyle][NPU] use np.testing.assert_allclose instead of... · 2de0d676
      Nyakku Shigure 提交于
      [CodeStyle][NPU] use np.testing.assert_allclose instead of self.assertTrue(np.allclose(...)) (part 1) (#44988)
      
      * autofix
      
      * try resolve precision issues
      
      * revert some changes
      
      * clean some `err_msg`
      
      * 0.0001 -> 1e-4
      
      * update commented assert code
      
      * try to fix some shape errors
      
      * `numpy` -> `np`
      
      * empty commit, trigger kunlun ci, test=kunlun
      
      * empty commit, retrigger kunlun ci, test=kunlun
      
      * empty commit, trigger kunlun ci, try fix npu memcpy_h2d, test=kunlun
      
      * try fix npu import error, test=kunlun
      2de0d676
  13. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  14. 02 4月, 2022 1 次提交
  15. 31 12月, 2021 1 次提交