1. 04 8月, 2023 1 次提交
    • J
      Support Combined indexing for __getitem__ and __setitem__ (#55211) · 697c712f
      JYChen 提交于
      * WIP: start writing combined indexing get
      
      * list/tuple/Variable
      
      * getitem 80%
      
      * add setitem
      
      * add some unittest for setitem
      
      * lazy import
      
      * fix some setitem error
      
      * fix advance indexing with decreasing axes; fix strided_slice input name
      
      * combine int-tensor getitem is ok (without boolean support & broadcast); add getitem unittest for static
      
      * add broadcast & parse bool tensor for __getitem
      
      * [change getitem] _getitem_impl_ to _getitem_static, not deleting the former one
      
      * refine new getitem; fix ut in variable/var_base
      
      * add __getitem__ ut in dygraph
      
      * re-dispatch getitem for Py/CPP; fix strided_slice decrease axes error in dygraph
      
      * fix ut; support tensor in slice
      
      * [change setitem] _setitem_impl_ to _setitem_static, not deleting the former one
      
      * remove some UT (for some, temporarily)
      
      * add IndexError to solve timeout problem in static-mode
      
      * 1.temply forbideen all-False bool-indexput; 2.setitem_static will return new variable
      
      * xpu uses old stratege
      
      * rename dy2st setitem ut to avoid same-name problem
      
      * dy2st for new combined index
      
      * ut case for combine-index with dy2st
      
      * open ut with all-false-bool setitem
      
      * remove useless doc and _getitem_impl_
      
      * change static res
      
      * fix static xpu
      697c712f
  2. 19 7月, 2023 1 次提交
    • J
      disable __setitem__ in static mode & add API paddle.static.setitem with dy2st strategy (#53682) · 7849d58d
      JYChen 提交于
      * add paddle.static.setitem
      
      * add some help doc
      
      * support setitem
      
      * support machanism
      
      * add more unittest
      
      * remove usless code
      
      * raise error in static setitem
      
      * fix d2s UT
      
      * remove static only for both-used code
      
      * fix bool set_value in static, fix set_value_op UT
      
      * fix unittests
      
      * [May case some error]: remove inplace-version check
      
      * add two test case for dy2st
      
      * fix function in vision
      
      * fix dy2st setitem support, refine UT case
      
      * fix slice in static_mode
      
      * add ParametersMap
      
      * remove pop
      
      * modify place
      
      * [fix]: variable is also a tensor
      
      * rewrite some ut & remove slicetransformer in dy2st
      
      * solve error in static-mode
      
      * fix ut
      
      * return a result for set_array_write
      
      * fix test_set_value_op_xpu
      
      * code is different in dynamic / static mode
      
      ---------
      Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
      Co-authored-by: NNotHaozi <zhangmenghao@baidu.com>
      7849d58d
  3. 12 6月, 2023 1 次提交
  4. 01 6月, 2023 1 次提交
    • T
      mv all unittests test (#53235) · b0e86d55
      tianshuo78520a 提交于
      * mv all unittests test
      
      * fix error
      
      * fix error
      
      * fix
      
      * fix
      
      * del unittests
      
      * fix paddle_build.sh
      
      * fix
      
      * fix test
      
      * fix add test
      
      * fix
      
      * fix
      
      * fix
      
      * merge develop
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * merge develop
      
      * fix test_async_read_write
      
      * fix test_async_read_write
      
      * merge develop
      
      * fix
      
      * fix import legacy_test
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix bug
      
      * fix
      
      * fix coverage test bug
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix code sstyle
      
      * fix code
      
      * fix code
      
      * fix
      
      * fix
      
      * fix
      
      * del test_sequence_enumerate_op.py
      
      * fix
      b0e86d55
  5. 22 4月, 2023 1 次提交
  6. 21 4月, 2023 1 次提交
  7. 31 3月, 2023 1 次提交
  8. 29 3月, 2023 1 次提交
  9. 25 3月, 2023 1 次提交
  10. 14 3月, 2023 1 次提交
  11. 14 2月, 2023 1 次提交
  12. 20 1月, 2023 1 次提交
    • G
      Fluid clean remove io data (#49301) · 5670644c
      GGBond8488 提交于
      * replace paddle.fluid.layers.data and remove io.data
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * remove data in fluid.layers.io.__all__
      
      * fix errors
      
      * fix unitests
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * fix test_layers unitests
      
      * fix typro
      
      * fix unitest
      
      * fix unitest
      
      * fix unitest
      
      * fix typro
      
      * fix unitest test_model_cast_to_bf16
      
      * fix test_reducescatter
      
      * fix collective unitest
      
      * fix collective unitests
      
      * fix collective unitests
      
      * add coverage
      
      * fix add layers.data
      
      * re run ci
      
      * fix some typro
      
      * fix samplecode error
      
      * fix samplecode error
      5670644c
  13. 03 1月, 2023 1 次提交
  14. 29 11月, 2022 1 次提交
  15. 22 11月, 2022 1 次提交
  16. 23 10月, 2022 1 次提交
  17. 10 10月, 2022 1 次提交
  18. 27 9月, 2022 1 次提交
  19. 10 8月, 2022 1 次提交
    • N
      [CodeStyle] use np.testing.assert_array_equal instead of... · 93c5c887
      Nyakku Shigure 提交于
      [CodeStyle] use np.testing.assert_array_equal instead of self.assertTrue(np.array_equal(...)) (#44947)
      
      * automatically fix
      
      * update comments
      
      * numpy -> np
      
      * self.assertEqual(..., True)
      
      * wrong usage (err_msg=True)
      
      这不是修复导致的错误,这些是原来 `self.assertTrue(..., True)`
      的错误用法,因此在修复后将其认为位置参数 `err_msg`
      
      * some missing fix
      93c5c887
  20. 15 7月, 2022 1 次提交
    • Z
      Fix random seed for several unit tests (#44135) · f9130835
      zlsh80826 提交于
      * Fix test_functional_conv2d_transpose random seed
      
      * Fix random seed and use np.testing
      
      * Fix random seed for test_lu_unpack_op
      
      * Fix test_autograd_functional_dynamic random seed
      f9130835
  21. 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
  22. 04 4月, 2022 1 次提交
  23. 25 3月, 2022 2 次提交
    • J
      Refactor Dygraph Flags (#40786) · 3085d5e4
      Jiabin Yang 提交于
      * refactor eager flags
      
      * fix flags error when we switch from eager to dygraph
      
      * fix ci problem
      
      * fix ci
      
      * fix ci
      
      * merge develop and fix code style
      
      * merge develop and fix code style
      
      * fix op test error
      
      * fix op test error
      
      * fix op test error
      
      * fix op test error
      
      * fix op test error
      
      * merge develop
      3085d5e4
    • F
      support get_item where the index is a bool scalar tensor (#40829) · 0f5e90a2
      FlyingQianMM 提交于
      * support get_item where the index is a bool scalar tensor
      
      * add unittests for supporting get_item where the index is a bool scalar tensor
      0f5e90a2
  24. 16 3月, 2022 1 次提交
  25. 24 1月, 2022 1 次提交
  26. 23 12月, 2021 1 次提交
  27. 22 11月, 2021 1 次提交
  28. 15 11月, 2021 1 次提交
  29. 26 8月, 2021 1 次提交
  30. 23 8月, 2021 1 次提交
    • Z
      Support gettiem by Bool index (#35026) · b6dc16cb
      zyfncg 提交于
      * Support getitem by Bool index
      
      * delete some debug info of bool index
      
      * support the case that the shape of bool index is different from indexed tensor
      b6dc16cb
  31. 24 6月, 2021 1 次提交
  32. 10 6月, 2021 1 次提交
  33. 09 6月, 2021 1 次提交
  34. 03 6月, 2021 1 次提交
  35. 02 6月, 2021 1 次提交
  36. 20 5月, 2021 1 次提交
  37. 02 4月, 2021 1 次提交
    • W
      support save/load single tensor (#31756) · 43367e4b
      WeiXin 提交于
      * support save/load single tensor
      
      * compatibility modification according to unnittest
      
      * Some python2.7 don't have 'copyreg' modules
      
      * Handle a syntax error.
      
      * Dealing with compatibility problems on Mac.
      
      * Dealing with compatibility problems on Mac.
      
      * edit unittest to improve coverage.
      
      * Modify the code according to the review comments
      
      * Reduce redundant code.
      
      * support for static graph loading dygraph state_dict
      
      * edit code according to CI
      
      * edit unittest
      
      * edit unnittest
      
      * delete redundant file
      
      * edit code according to Comments
      
      * edit english doc
      
      * edit english doc
      
      * edit English DOC.
      
      * get/set_tensor->get/set_value; return_numpy=False
      
      * get/set_tensor->get/set_value; return_numpy=False
      
      * edit unnittest
      
      * edit unnittest
      
      * polish code.
      43367e4b
  38. 26 4月, 2020 1 次提交
  39. 22 12月, 2019 1 次提交