1. 16 8月, 2023 1 次提交
  2. 11 8月, 2023 6 次提交
    • M
      [dy2static]implement tensor.cuda() in static graph (#56092) · a6a49855
      Meteor Liu 提交于
      * [dy2static]implement tensor.cuda() in static graph
      
      * [dy2static]implement tensor.cuda() in static graph - change the patch place
      
      * [dy2static]implement tensor.cuda() in static graph - fix code-block in comment
      
      * [dy2static]implement tensor.cuda() in static graph - add ut for warning branch
      a6a49855
    • L
      remove the optimizer base and learning rate base (#56099) · 6eaed2da
      LoneRanger 提交于
      * remove the optimizer base and learning rate base
      
      * fix bug
      
      * fix bug
      6eaed2da
    • J
      remove fluid/tests (#56182) · 22dbceca
      JYChen 提交于
      22dbceca
    • Y
      [NewIR]Polish IR code (#56087) · 8cf4b1c2
      YuanRisheng 提交于
      * perfect code
      
      * delete __all__
      8cf4b1c2
    • D
      repacle fluid.io.load_inference_model, fluid.io.save_inference_model in fluid... · bfc64801
      Difer 提交于
      repacle fluid.io.load_inference_model, fluid.io.save_inference_model in fluid with 2.0 version  (#55345)
      
      * repacle fluid.io.load_inference_model
      
      * replace fluid.io.save_inference_model
      
      * fix some bug
      
      * fix some bugs of load & save model
      
      * fix some bug
      
      * fix test_inference_model_io bug
      
      * fix word2vec_inference_model bug
      
      * fix some bug
      
      * fix valueError bug
      
      * fix some bug
      
      * fix a warning error
      
      * for debug
      
      * for debug
      
      * fix io error
      
      * fix test_wordvec_book error
      
      * remove debug print
      
      * fix load_var bug
      
      * for debug cinn test
      
      * revert cinn & fix inference_pass_test in windows
      
      * fix some bugs
      
      * revert cinn & fix inference_pass_test in windows
      
      * for debug vars
      
      * for debug
      
      * fix quant_dequant_test
      
      * fix some path errors
      
      * remove fluid save/load
      
      * fix incubate-fleet save
      
      * move some from fluid.io to static.io
      bfc64801
    • D
      move some fluid apis (#55986) · eafc9889
      Difer 提交于
      * move fluid apis
      
      * fix type error
      
      * remove static exponential_decay
      
      * fix some import error
      
      * remove nn.py
      
      * fix some error
      
      * fix type error
      eafc9889
  3. 10 8月, 2023 1 次提交
  4. 09 8月, 2023 1 次提交
    • L
      remove the... · 723c6f77
      LoneRanger 提交于
      remove the AdamOptimizer、SGDOptimizer、MomentumOptimizer、ModelAverage、LookaheadOptimizer、FtrlOptimizer、DecayedAdagradOptimizer、DpsgdOptimizer in fluid and relocate the ExponentialMovingAverage、PipelineOptimizer、GradientMergeOptimizer and change optimizer base for LarsMomentumOptimizer and RecomputeOptimizer (#55970)
      
      * change the optimizer base for SGDOptimizer
      
      * change the optimizer base for SGDOptimizer
      
      * replace the SGDOptimizer with SGD
      
      * fix bug of sgd
      
      * change the optimizer base for MomentumOptimizer
      
      * fix the remaining tests
      
      * remove the Momentum in fluid/optimizer.py
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * Update test_resnet_cinn.py
      
      * Update test_resnet_prim_cinn.py
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * remove the ModelAverage in fluid
      
      * remove the LookaheadOptimizer in fluid
      
      * fix bug
      
      * remove AdamOptimizer in fluid
      
      * Update test_image_classification_fp16.py
      
      * fix bug
      
      * relocate the ExponentialMovingAverage in fluid
      
      * restore the static api
      
      * remove the FtrlOptimizer in fluid
      
      * remove the DecayedAdagradOptimizer in fluid
      
      * remove the DpsgdOptimizer in fluid
      
      * fix bug
      
      * fix codestyle
      
      * fix bug
      
      * fix bug
      
      * relocate the PipelineOptimizer
      
      * relocate the GradientMergeOptimizer
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix doc
      
      * Update __init__.py
      
      * Update test_fleet_qat_meta_optimizer.py
      
      * change optimizer base for LarsMomentumOptimizer
      
      * fix bug
      
      * fix conflict
      
      * fix code-style
      
      * fix sample codes
      
      * fix bug
      
      * fix bug
      
      * fix cinn bug
      
      * fix bug
      
      * fix bug
      
      * Update qat_optimizer.py
      
      * Update __init__.py
      
      * fix bug
      
      * change optimizer base for RecomputeOptimizer
      
      * fix bug
      
      * fix bug
      
      * Update test_imperative_optimizer_v2.py
      723c6f77
  5. 08 8月, 2023 1 次提交
    • M
      [enhancement] Implement tensor.cpu() in static graph (#55921) · 1262e787
      Meteor Liu 提交于
      * [enhancement] Implement tensor.cpu() in static graph
      
      * [enhancement] Implement tensor.cpu() in static graph
      
      * [dy2static] add unitest cases for tensor.cpu()
      
      * [dy2static] add unitest cases for tensor.cpu() - run only on paddle compiled with cuda mode
      
      * [dy2static]Refine the format of the api-doc for Variable.cpu().
      1262e787
  6. 07 8月, 2023 2 次提交
    • Y
      [New IR]Add attrs Interface for Python (#55974) · 02e6347d
      YuanRisheng 提交于
      * add attrs and dtype interface
      
      * fix compile bugs
      
      * fix some bugs
      
      * fix windows bugs
      02e6347d
    • X
      [dy2static] PaddleSOT pr (#54202) · c1913a5f
      xiongkun 提交于
      * add paddle-symbolic-trace to paddle
      
      * add symoblic trace
      
      * delete swp
      
      * support Layer in symbolic trace
      
      * fix test-symbolic-trace, make symbolic trace return a StaticFunction
      
      * template the error message
      
      * fix some unittest
      
      * Modify the execution mode of test
      
      * Modify the module name
      
      * add dy2static unittest decorator
      
      * change some unittest files by @ast_only_test
      
      * fix unittest.
      
      * test-symbolic-trace
      
      * update test_write_python_container.py
      
      * update
      
      * fix test_param_parse.py
      
      * add submodule and ln -sf in cmakefile
      
      * update
      
      * update
      
      * fix some ast only errors
      
      * update
      
      * Polish ut
      
      * fix unittests
      
      * update
      
      * update
      
      * fix unittests
      
      * update
      
      * test warning ast only
      
      * update
      
      * Ast only some uts
      
      * Fix unitests
      
      * test_error ast only
      
      * update
      
      * update
      
      * Support build_strategy for sot
      
      * update
      
      * import sot as a third party module
      
      * update
      
      * update
      
      * Polish code
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * remove old fluid api and use paddle.nn.relu instead
      
      * fix
      
      * comment the print of ast code
      
      * add try-finally block
      
      * fix dy2static stop-gradient bugs
      
      * fix code
      
      * remove unused submodule and minor codestyle fix
      
      * fix
      
      * fix cast error
      
      * fix interpolate meets int64 in static model
      
      * add evalframe support for py311
      
      * fix
      
      * fix err
      
      * switch ENABLE_FALL_BACK=False
      
      * fix
      
      * Fix CI for some unittest
      
      * add ENABLE_SOT
      
      * remove setup.py dependences
      
      ---------
      Co-authored-by: NNotHaozi <zhangmenghao@baidu.com>
      Co-authored-by: Nfeifei-111 <2364819892@qq.com>
      Co-authored-by: N0x45f <wangzhen45@baidu.com>
      Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
      c1913a5f
  7. 04 8月, 2023 2 次提交
    • D
      repacle embedding in fluid with 2.0 version (#55757) · 2d91a9bd
      Difer 提交于
      * replace embedding
      
      * replace sparse_embedding
      
      * fix some bugs
      
      * del embedding
      
      * repalce layers.embedding
      
      * fix type error
      2d91a9bd
    • 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
  8. 02 8月, 2023 1 次提交
  9. 01 8月, 2023 1 次提交
  10. 31 7月, 2023 3 次提交
  11. 26 7月, 2023 2 次提交
  12. 22 7月, 2023 1 次提交
  13. 21 7月, 2023 1 次提交
    • Q
      开发grad_fn、next_functions两个API 并暴露到python端- 修改单侧文件路径到合理位置 (#55311) · 03f06841
      qiuwenbo 提交于
      * [尝试] 给tensor增加一个属性, 这个属性是一个定值 1
      
      * 暴露gradnode 并构建gradnode新的方法(用来测试)进行暴露给python python端可以访问
      
      * 开发grad_fn、next_functions两个API 并暴露到python端- 做一些规范化处理
      
      * 增加一个单元测试
      
      * 优化 code-style
      
      * 将单侧文件迁到正确的位置
      
      * 优化 code-style
      
      * 删除无用注释
      
      * 解决 __main__ has no attribute
      
      * 修改单侧文件
      
      * 修改单侧脚本-temp
      03f06841
  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. 18 7月, 2023 2 次提交
  16. 11 7月, 2023 2 次提交
    • 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
    • Q
      赛题七-开发grad_fn、next_functions两个API 并暴露到python端-v1 (#54838) · ab46b14c
      qiuwenbo 提交于
      * [尝试] 给tensor增加一个属性, 这个属性是一个定值 1
      
      * 暴露gradnode 并构建gradnode新的方法(用来测试)进行暴露给python python端可以访问
      
      * 开发grad_fn、next_functions两个API 并暴露到python端- 做一些规范化处理
      
      * 增加一个单元测试
      
      * 优化 code-style
      ab46b14c
  17. 10 7月, 2023 2 次提交
  18. 07 7月, 2023 1 次提交
  19. 06 7月, 2023 1 次提交
  20. 05 7月, 2023 1 次提交
  21. 03 7月, 2023 2 次提交
  22. 30 6月, 2023 2 次提交
  23. 29 6月, 2023 1 次提交
  24. 28 6月, 2023 2 次提交
    • L
      remove nets.py in fluid (#51717) · 87f72107
      LoneRanger 提交于
      * remove function sequence_conv_pool
      
      * fix test_glu.py
      
      * remove function scaled_dot_product_attention
      
      * remove function img_conv_group
      
      * remove function simple_img_conv_pool
      
      * delete the nets.py
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * Update test_image_classification.py
      
      * Update test_recognize_digits.py
      
      * Update test_recommender_system.py
      
      * Update test_image_classification_fp16.py
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * remove the nets.py in fluid
      
      * fix bug
      
      * fix the codestyle
      
      * fix conflict
      
      * fix bug
      
      * Fix TODO
      87f72107
    • L
      replace PiecewiseDecay, StepDecay, MultiStepDecay, LambdaDecay with 2.0 version (#53992) · 63f242b6
      LoneRanger 提交于
      * replace PiecewiseDecay(LearningRateDecay) with PiecewiseDecay(LRScheduler)
      
      * fix bug
      
      * fix bug
      
      * replace the StepDecay,MultiStepDecay,LambdaDecay with 2.0 version
      63f242b6