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. 01 8月, 2023 2 次提交
  3. 31 7月, 2023 1 次提交
  4. 28 7月, 2023 1 次提交
  5. 20 7月, 2023 1 次提交
  6. 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
  7. 11 7月, 2023 1 次提交
    • L
      replace the AdagradOptimizer... · 94365855
      LoneRanger 提交于
      replace the AdagradOptimizer 、adamaxOptimizer、AdadeltaOptimizer、RMSPropOptimizer、LambOptimizer and Momentum (#54152)
      
      * replace the AdadeltaOptimizer with Adadelta
      
      * replace the RMSPropOptimizer with RMSProp
      
      * replace the LambOptimizer with lamb
      
      * replace the momentum in contrib/optimizer.py with Momentum in python/paddle/optimizer/momentum.py
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug of Lamp
      
      * fix bug of Lamp
      
      * fix bug of import
      
      * replace the AdamaxOptimizer with Admax and change the optimizer base for AdagradOptimizer
      
      * fix bug
      
      * fix bug
      
      * Update optimizer.py
      
      * fix bug
      
      * fix bug
      94365855
  8. 30 6月, 2023 1 次提交
  9. 28 6月, 2023 1 次提交
  10. 27 6月, 2023 2 次提交
  11. 12 6月, 2023 1 次提交
  12. 09 6月, 2023 1 次提交
  13. 08 6月, 2023 1 次提交
  14. 02 6月, 2023 2 次提交
  15. 22 5月, 2023 2 次提交
    • M
      [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() (#53856) · 3794d171
      Meteor Liu 提交于
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * fixed cyclic reference that caused patial import
      
      * fixed bad change
      
      * fix bad import
      
      * fix bad import
      
      * fix bad import
      
      * fix ut failed caused by change in_dynamic_mode
      
      * fix ut failed caused by change in_dynamic_mode
      
      * fixed usage of in_dynamic_mode() or in_dygraph_mode()
      
      * revert python3 to python in .pre-commit-config.yaml
      
      * fix merge conflicts
      3794d171
    • X
      Eval frame speedup (#53969) · 9fb22293
      xiongkun 提交于
      * [Dy2static-Fallback] add set_eval_frame function in pybind.
      1. add set_eval_frame function in pybind.
      
      * add unittest for eval frame hooker.
      
      * [support py38]
      
      * fix-GeneratorExit error in eval frame hooker
      
      * support python == 3.9
      
      * support 3.10
      
      * fix some comments
      
      * speed up eval frame for cache hitted code.
      
      * code format
      
      * fix unittest
      
      ---------
      Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
      9fb22293
  16. 18 5月, 2023 1 次提交
    • X
      [Dy2static-Fallback] add set_eval_frame function in pybind. (#52006) · 7b1695af
      xiongkun 提交于
      * [Dy2static-Fallback] add set_eval_frame function in pybind.
      1. add set_eval_frame function in pybind.
      
      * add unittest for eval frame hooker.
      
      * [support py38]
      
      * fix-GeneratorExit error in eval frame hooker
      
      * support python == 3.9
      
      * support 3.10
      
      * fix some comments
      7b1695af
  17. 15 5月, 2023 1 次提交
  18. 11 5月, 2023 2 次提交
  19. 08 5月, 2023 2 次提交
  20. 28 4月, 2023 1 次提交
  21. 27 4月, 2023 2 次提交
  22. 24 4月, 2023 3 次提交
  23. 21 4月, 2023 1 次提交
  24. 20 4月, 2023 1 次提交
  25. 14 4月, 2023 1 次提交
  26. 13 4月, 2023 1 次提交
  27. 12 4月, 2023 1 次提交
  28. 11 4月, 2023 1 次提交
  29. 07 4月, 2023 2 次提交
  30. 06 4月, 2023 1 次提交