1. 30 8月, 2023 7 次提交
    • G
      [Auto Parallel] Compatible new comm library upgrade (#56604) · ade51aa5
      Ghost Screaming 提交于
      * for verify
      
      fluid operator support new comm library
      
      * u
      
      * u
      
      * u
      
      * compatiable new comm library upgrade for c_allgather, c_reduce, c_reduce_scatter and c_scatter.
      
      * Remove useless comments in process_group.py
      
      * Polish code style.
      
      * Fix some problems.
      
      * Remove use fluid api in phi comm_context_manager.
      
      * Add PPADDLE_WITH_CUDA and PADDLE_WITH_NCCL micro judgement.
      
      * Fix bug of HIP architecture.
      
      * Fix some problems.
      1. remove useless loggings.
      2. Fix conditional compilation for HIP.
      3. Fix problems of test_pass_generation_pipeline.py. It calls paddle.distributed.init_parallel_env() at first,
      then auto.Engine calls _init_comm(), which will calls process_group.instantiate(). However, init_parallel_env() will call
      paddle.distributed.barrier(), it will call CreateNCCLEnvCache and create corresponding NCCLCommContext. But dev_id is not
      set, as a result, NCCLCommContext's dev_ctx is not initialized.
      
      * Fix some problems.
      
      * Polish code.
      
      * Polish code.
      
      * Revert compatiable upgrade for communication operators. Their upgrades
      will be submitted in another PR.
      
      * Remove StaticTCPStore.
      
      * Remove useless modification.
      
      * Remove useless set_cuda_device_id.
      
      * Polish code.
      
      * Remove fluid header files in phi files.
      
      * Remove useless comments.
      
      * Fix problems of hip arch.
      
      * Fix some problems.
      
      * Polish code.
      
      * Polish code style.
      
      ---------
      Co-authored-by: TaoTao Li's avatarhitywt <yuwentao126@126.com>
      ade51aa5
    • C
      [Prim][NewIR] Support prim all in new IR (#56614) · e457c298
      cyber-pioneer 提交于
      * support prim all in new ir
      
      * process makefile
      
      * fix rule bug
      
      * polish case
      
      * fix flag
      
      * fix rules bug
      e457c298
    • N
      [docs] fix api labels in math.py (#56682) · 5d164968
      Nyakku Shigure 提交于
      5d164968
    • Y
      [Doctest]fix No.303, test=docs_preview (#56777) · 609c0321
      yoyoIcy 提交于
      609c0321
    • iSerendipity's avatar
      【complex op】No.6 add complex support for logical_and/or/xor/not (#56323) · 5cbf5bd4
      iSerendipity 提交于
      * 【complex op】No.6 add complex support for logical_and/or/xor/not
      
      * fix dtype check
      
      * modify the docs
      
      * add special condition for not raise when x.dtype is complex
      
      * add random generate for complex dtype
      
      * fix generate for complex
      
      * fix
      
      * fix
      
      * add corner case for complex type
      
      * fix ut
      
      * fix ut
      5cbf5bd4
    • L
      [xdoctest] reformat example code with google style in No.6-No.10 (#56146) · fc1e505e
      LoneRanger 提交于
      * fix sample code
      
      * fix bug
      
      * fix bug
      
      * Update regularizer.py
      
      * Update __init__.py
      
      * Update decorator.py
      
      * fix code-style
      fc1e505e
    • [xdoctest] reformat example code with google style in No.307 (#56595) · 34eecb0e
      张春乔 提交于
      * weight_norm_hook
      
      * Update weight_norm_hook.py
      
      * Update weight_norm_hook.py
      
      * Update python/paddle/nn/utils/weight_norm_hook.py
      
      * Update python/paddle/nn/utils/weight_norm_hook.py
      
      * Update python/paddle/nn/utils/weight_norm_hook.py
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      
      * xdoc
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      ---------
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      34eecb0e
  2. 29 8月, 2023 9 次提交
  3. 28 8月, 2023 8 次提交
    • [API Enhancement] No.6 support single `int` input in UpsamplingNearest2D and... · d0f1be51
      张春乔 提交于
      [API Enhancement] No.6 support single `int` input in UpsamplingNearest2D and UpsamplingBilinear2D (#56470)
      
      * enhance single int input in UpsamplingNearest2D and UpsamplingBilinear2D
      
      * add unittest
      
      * add unittest
      d0f1be51
    • A
      Update loss.py --refactored fluid_softmax_with_cross_entropy (#56686) · 3568a99c
      Aditya Raj 提交于
      * Update loss.py --refactored fluid_softmax_with_cross_entropy
      
      * Update loss.py
      3568a99c
    • N
      d7e0f875
    • G
      【inplace api】Batch add inplace api gt_, ge_, lt_, le_, eq_, not_equal_,... · c5fc413a
      GGBond8488 提交于
      【inplace api】Batch add inplace api gt_, ge_, lt_, le_, eq_, not_equal_, logical_and_, logical_or_, logical_xor_, logical_not_, divide_, floor_divide_, bitwise_and_ , bitwise_or_, bitwise_xor_, bitwise_not_ (#55509)
      
      * tmp commit
      
      * add atan2
      
      * add inplace api
      
      * fix error
      
      * add inpalce divide
      
      * add inplace api
      
      * add more inplace
      
      * add more inpalce
      
      * fix logical_not error
      
      * support sinh and cosh in cpu
      
      * support asin, acos, atan, asinh, acosh, atanh in cpu
      
      * fix typro
      
      * fix typro
      
      * mv out atan2 ldexp
      
      * mv out atan2 ldexp
      
      * support sinh and cosh in gpu
      
      * support asin, acos, atan, asinh, acosh, atanh in gpu
      
      * fix ge error
      
      * fix dygraph commpare error
      
      * fix dygraph commpare error
      
      * check complex in python
      
      * fix cast inpalce error
      
      * open inplace test
      
      * fix ops.yaml error
      
      * mv cast inpalce to python
      
      * fix coverage ci
      
      * add last inplace
      
      * fix inplace error
      
      * fix cast error
      
      * fix error
      
      * add nan_to_num_
      
      * fix typro
      
      * fix sparse cast error
      
      * remove gpu 4
      
      * fix static cast error
      
      * tmp commit
      
      * add atan2
      
      * add inplace api
      
      * fix error
      
      * add inpalce divide
      
      * add inplace api
      
      * add more inplace
      
      * add more inpalce
      
      * fix logical_not error
      
      * fix typro
      
      * fix typro
      
      * mv out atan2 ldexp
      
      * mv out atan2 ldexp
      
      * fix ge error
      
      * fix dygraph commpare error
      
      * fix dygraph commpare error
      
      * fix cast inpalce error
      
      * open inplace test
      
      * fix ops.yaml error
      
      * mv cast inpalce to python
      
      * fix coverage ci
      
      * add last inplace
      
      * fix inplace error
      
      * fix cast error
      
      * fix error
      
      * add nan_to_num_
      
      * fix typro
      
      * fix sparse cast error
      
      * remove gpu 4
      
      * fix static cast error
      
      * fix cast error
      
      * fix
      
      * Revert "check complex in python"
      
      This reverts commit c822064261d774dd58ad46a4f90ba8b467700a05.
      
      * add renorm , fix error
      
      * add coverage
      
      * fix cumsum inpalce version error
      
      * add cast inpalce impl
      
      * rm test.log
      
      * fix multiply_dyfunction and add multiply_backward test
      
      * add and use is_same_tensor
      
      * fix typro
      
      * fix sone error
      
      * fix typro
      
      ---------
      Co-authored-by: NScotty <jmhgchn@gmail.com>
      Co-authored-by: NScotty <527407973@qq.com>
      c5fc413a
    • I
      [xdoctest][task 213,215-217] reformat example code with google style in... · f9c51e8c
      iLeGend 提交于
      [xdoctest][task 213,215-217] reformat example code with google style in `python/paddle/distributed/fleet/base` (#56651)
      
      * [xdoctest][task 213,215-217] reformat example code with google style in python/paddle/distributed/fleet/base
      
      * fix output as comments
      f9c51e8c
    • W
      fix fetch problem in pass_utils.py and eval_loss in parallelizer_v2.py (#56539) · c7727885
      Wennie396 提交于
      * fix eval_loss bug in parallelizer_v2.py
      
      * fix fetch problem in pass_utils.py
      c7727885
    • X
      [API Enhancement] No.1 support the any number of times in paddle.diff [used AI Studio] (#56681) · 39e8b023
      Xavier ZXY 提交于
      * Fix: The number of times to recursively compute the difference supports any number
      
      * Fix: use pre-commit to format code
      39e8b023
    • X
      [NewIR]Split python api and vjp (#56518) · 7995a389
      xiaoguoguo626807 提交于
      * support ir api form prim
      
      * convert vector of int to intarray
      
      * add reference of lbfgs
      
      * add reference of lbfgs
      
      * support ir api for prim
      
      * Add more gen api
      
      * concat python api to concat_grad
      
      * fix gen conflict
      
      * support vjp prim mode in new ir
      
      * remove useless code
      
      * add vjp autogen v1.0
      
      * add test for prim
      
      * resolve type conflict
      
      * modify utils
      
      * remove useless code
      
      * add split op and modify some bug of vectorType
      
      * fix conflict
      
      * add concat python test
      
      * add split python api to vjp
      
      * modify build bug
      
      * modify run bug
      
      * fix conflict bug
      
      * build bug fix
      
      * modify python api bug
      
      * modify test
      
      * fix conflict
      
      * fluid backward recover
      
      * recover conflict
      
      * reply review comments
      
      * modify opruntimeinfo num
      
      ---------
      Co-authored-by: Ncyber-pioneer <chenzhuo@tju.edu.cn>
      Co-authored-by: NCharles-hit <wanghao107@baidu.com>
      Co-authored-by: N0x45f <wangzhen45@baidu.com>
      Co-authored-by: Nchenzhiyang <1792266893@qq.com>
      Co-authored-by: NChen Zhiyang <chenzhiyang99@126.com>
      7995a389
  4. 25 8月, 2023 16 次提交