1. 08 9月, 2023 1 次提交
  2. 07 9月, 2023 1 次提交
  3. 04 9月, 2023 1 次提交
  4. 31 8月, 2023 1 次提交
  5. 24 8月, 2023 1 次提交
  6. 21 8月, 2023 1 次提交
  7. 17 8月, 2023 1 次提交
  8. 11 8月, 2023 1 次提交
  9. 10 8月, 2023 1 次提交
  10. 07 8月, 2023 1 次提交
  11. 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
  12. 02 8月, 2023 1 次提交
  13. 31 7月, 2023 1 次提交
  14. 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
  15. 10 7月, 2023 2 次提交
  16. 05 7月, 2023 1 次提交
  17. 25 6月, 2023 1 次提交
  18. 12 6月, 2023 1 次提交
  19. 30 5月, 2023 1 次提交
  20. 23 5月, 2023 1 次提交
  21. 22 5月, 2023 1 次提交
    • 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
  22. 17 5月, 2023 1 次提交
  23. 16 5月, 2023 2 次提交
  24. 11 5月, 2023 1 次提交
  25. 08 5月, 2023 1 次提交
  26. 27 4月, 2023 1 次提交
  27. 25 4月, 2023 2 次提交
    • Z
      Fix some problems in Paddle english instruction doc files. (#53145) · 6c152472
      Zenghui Yuan 提交于
      * Fix some problems in Paddle english instruction doc files.
      
      * fix some new questions
      
      * fix cn doc problems, test=document_fix
      6c152472
    • M
      rename monkey_patch_{math_}varbase as monkey_patch_{math_}tensor (#53191) · 5ca3bc6d
      Meteor Liu 提交于
      * rename monkey_patch_varbase as monkey_patch_tensor & monkey_patch_math_varbase as monkey_patch_math_tensor
      
      * rename monkey_patch_varbase as monkey_patch_tensor & monkey_patch_math_varbase as monkey_patch_math_tensor
      
      * rename monkey_patch_varbase as monkey_patch_tensor & monkey_patch_math_varbase as monkey_patch_math_tensor v2
      
      * rename monkey_patch_varbase as monkey_patch_tensor & monkey_patch_math_varbase as monkey_patch_math_tensor fixed bug
      5ca3bc6d
  28. 19 4月, 2023 1 次提交
  29. 18 4月, 2023 1 次提交
  30. 14 4月, 2023 3 次提交
    • 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
    • D
      add npu to device_guard (#52774) · 64b4aaba
      duanyanhui 提交于
      64b4aaba
    • K
      rem cncl (#52434) · 25bd5ed8
      Kim Yann 提交于
      25bd5ed8
  31. 12 4月, 2023 1 次提交
  32. 11 4月, 2023 1 次提交
  33. 10 4月, 2023 1 次提交
  34. 07 4月, 2023 1 次提交
  35. 06 4月, 2023 1 次提交
    • K
      rem is_compiled_with_npu (#52385) · 7976e2a3
      Kim Yann 提交于
      * rem is_compiled_with_npu
      
      * rem nup related code
      
      * make lint happy
      
      * rem test
      
      * remove some tests
      
      * Update grad_scaler.py
      
      * fix an error
      7976e2a3