1. 09 8月, 2023 4 次提交
    • K
    • [xdoctest] reformat example code with google style in 78 (#55966) · b0ed082e
      张春乔 提交于
      * input.py
      
      * Update python/paddle/nn/functional/input.py
      
      * Update input.py
      b0ed082e
    • 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
    • Y
      cherry pick #55651 and #55890 (#56063) · fa878846
      Yuang Liu 提交于
      fa878846
  2. 08 8月, 2023 10 次提交
  3. 07 8月, 2023 10 次提交
    • Y
      Add attn_mask supported for FlashAttnKernel. (#55969) · 42e0c6b8
      yin wei 提交于
      * add mask
      
      * add backword
      
      * add enforce info
      
      * update scale
      
      * integrate code
      
      * update enforce
      
      * add enforce eq
      
      * add error type
      
      * update enforce
      
      * add test_flash_attention
      
      * Polish codes and fix compiling errors.
      
      * Set num_splits to 0 for flash-attn with tensor mask.
      
      * Fix the compiling error for non flash-attn case.
      
      ---------
      Co-authored-by: NLiu Yiqun <liuyiqun01@baidu.com>
      42e0c6b8
    • L
      Make tcp store as a global instance (#55956) · 0434b828
      LiYuRio 提交于
      * make tcp store a global instance
      
      * fix windows compile error
      0434b828
    • 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
    • N
      [xdoctest] reformat example code with google style in `paddle/tensor/math` (#55768) · ae88111f
      Nyakku Shigure 提交于
      * [xdoctest] reformat example code with google style in `paddle/tensor/math`
      
      * preview, test=docs_preview
      
      * scale, test=docs_preview
      
      * stanh, test=docs_preview
      
      * multiplex, test=docs_preview
      
      * pow, test=docs_preview
      
      * max, test=docs_preview
      
      * others..., test=docs_preview
      
      * update trunc example code, test=docs_preview
      ae88111f
    • G
      [xdoctest] No.44-47 and No.50-59 doc style (#55813) · 84fe0454
      gouzil 提交于
      84fe0454
    • 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
    • L
      update LBFGS to adapt to 0D tensor (#55825) · fc177d25
      lijialin03 提交于
      fc177d25
    • T
      Test Del paddle_bfloat (#55904) · 8fc2366c
      tianshuo78520a 提交于
      * Test Del paddle_bfloat
      
      * Del paddle_bfloat test
      8fc2366c
    • D
      fix cholesky_solve document bug (#55999) · 24c63733
      DHANUSH N 提交于
      24c63733
    • C
      Update profiler.py (#56001) · ddfbf135
      co63oc 提交于
      ddfbf135
  4. 04 8月, 2023 4 次提交
    • 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
    • K
      [NewIR] add decorator for dy2st test with new ir (#55840) · b67715a4
      kangguangli 提交于
      * add decorator for new_ir_test
      
      * fix bug and only test in ci-coverage
      
      * fix bug and only test in ci-coverage
      
      * fix
      
      * fix bugs
      
      * fix
      
      * fix
      b67715a4
    • 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
    • C
      [xdoctest] reformat example code with google style in No.91-94 (#55832) · bd14926e
      cyberslack_lee 提交于
      * test=docs_preview
      
      * test=docs_preview
      
      * test=docs_preview
      
      * test=docs_preview
      bd14926e
  5. 03 8月, 2023 6 次提交
  6. 02 8月, 2023 6 次提交
    • Y
      [Inference] Replace groupNorm when data types are bf16 and fp16, and data... · e61d892a
      yangjianfengo1 提交于
      [Inference] Replace groupNorm when data types are bf16 and fp16, and data format is NHWC implementation. (#55399)
      
      * finish
      
      * cpergroup odd
      
      * fix bf16
      
      * single channel
      
      * code style
      
      * jingdu duiqi
      
      * add head_file
      
      * add bf16 head file
      
      * bf16 2
      
      * bf16
      
      * bf16 head
      
      * bf16 compile
      
      * py test
      
      * bf16 compile
      
      * bf16 compile
      
      * unset py test
      
      * nhwc
      
      * test
      
      * mean var
      
      * bf16 success
      
      * su
      
      * ctest success
      
      * use is_same_as
      
      * is_same
      
      * use is_same
      
      * rtol
      
      * gpu_stream
      
      * del sigmod
      
      * fix bfloat16 type
      
      * use cuda_bf16_hpp
      
      * use_cuda_arch
      
      * bfloat162float2
      
      * del inplace_tol
      
      * del max_releative_tol
      
      * temp store
      
      * jingdu duiqi
      
      * temp store
      
      * plugin
      
      * jingdu duiqi
      
      * duiqi
      
      * include cuda.h
      
      * del half
      
      * half single
      
      * ci
      
      * add const
      
      * ci
      
      * cudamemset
      
      * del printf
      
      * fp16 test
      
      * add half compute
      
      * del br16 ci
      
      * del ci
      
      * ci approve
      
      * del fluid include
      e61d892a
    • L
      add the float16 and bfloat16 for poisson (#55824) · 883ccdd5
      LoneRanger 提交于
      883ccdd5
    • C
      Add FP16 & BF16 for erfinv (#55287) · 6d7efd09
      cyberslack_lee 提交于
      6d7efd09
    • W
      fix security bug (#55782) · 19da5c0c
      wanghuancoder 提交于
      * fix security bug
      19da5c0c
    • O
      [xdoctest] reformat example code with google style in No.21-30 (#55849) · 5d26d79f
      ooooo-create 提交于
      * [Doctest]fix No.21, test=docs_preview
      
      * Revert "[Doctest]fix No.21, test=docs_preview"
      
      This reverts commit 76bcdb280e254d682be6fc6f85588f1940bb1ade.
      
      * [Doctest]fix No.21, test=docs_preview
      
      * fix bugs,test=docs_preview
      
      * [Doctest]fix No.22-24,26,27, test=docs_preview
      
      * update fix
      
      * with pre-commit, test=docs_preview
      
      * fix seed, test=docs_preview
      
      * fix error, test=docs_preview
      
      * fix seed, test=docs_preview
      
      * fix seed, test=docs_preview
      5d26d79f
    • Z
      [xdoctest] reformat example code with google style in No.48&49 (#55868) · 5e96126d
      zachary sun 提交于
      * [Doctest]fix No.48&49, test=docs_preview
      
      * remove end of lines
      
      * fix_codestyle
      5e96126d