1. 08 12月, 2022 11 次提交
    • G
      Clean fluid APIs in distributed and fleet files (#48851) · 911d6bb1
      Ghost Screaming 提交于
      * Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
      is wrong.
      
      * Remove climits.
      
      * Clean fluid API in paddle/distributed and paddle/fleetx folders.
      Include following files:
      python/paddle/distributed/__init__.py
      python/paddle/distributed/collective.py
      python/paddle/distributed/fleet/utils/fs.py
      python/paddle/distributed/fleet/utils/hybrid_parallel_inference.py
      python/paddle/distributed/fleet/utils/hybrid_parallel_util.py
      python/paddle/distributed/fleet/utils/internal_storage.py
      python/paddle/distributed/launch/context/device.py
      python/paddle/distributed/parallel.py
      python/paddle/distributed/parallel_with_gloo.py
      python/paddle/distributed/spawn.py
      python/paddle/framework/__init__.py
      To be mentioned, 'paddle.fluid.dygraph.parallel.ParallelEnv'
       and 'fluid.framework.core' keeps unchanged in those files.
      ParallelEnv is used by paddle.fluid.dygraph.parallel.DataParallel.
      However, APIs in paddle.fluid.dygraph.parallel can't be
      migrated to paddle.distributed, as there exists cyclic import
      dependencies in modules like paddle.static, paddle.tensor. And
      'fluid.framework.core' will be changed to import framework.core
      after fluid.core is transmitted.
      
      * Change TODO authors.
      911d6bb1
    • A
      [API Clean]Clean __all__ to avoid exposing usless API (#48713) · ea9e4085
      Aurelius84 提交于
      * [API Clean]Clean __all__ to avoid exposing usless API
      
      * fix import
      
      * fix typo
      
      * remove tracedLayer unittest
      ea9e4085
    • 2
      Optimize Paddle diagonal (#47904) · b91bbd32
      201716010711 提交于
      b91bbd32
    • [Paddle Inference] Add add onehot trt converter (#48655) · 1adf5430
      六个骨头 提交于
      * add onehot trt converter
      
      * add unitest
      
      * fix bug
      
      * opt code
      
      * fix bug
      
      * fix depth_tensor
      
      * fix unitest
      
      * fix bug
      
      * fix unitest
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      1adf5430
    • G
      Clean and migrate fluid APIs of paddle.fluid.layers.control_flow (#48233) · 6b0d9590
      Ghost Screaming 提交于
      * Merge branch 'reduce_sum' of https://github.com/GhostScreaming/Paddle into mine_fluid_clean_common.
      
      * Fix some bugs.
      
      * Clean APIs in python/paddle/fluid/layers/control_flow.py
      
      * Polish code style.
      
      * Change API.
      
      * Fix some bugs.
      
      * Fix some bugs.
      6b0d9590
    • R
      [Clean Fluid] Rm and mv some fluid dygrah apis (#48576) · 379216ae
      Roc 提交于
      Remove fluid dygrah apis
      GroupNorm
      TreeConv
      Move fluid dygraph apis
      Flatten
      SpectralNorm
      379216ae
    • N
      [CodeStyle][F811] fix some test cases shadowed by the same name (#48745) · cdf31dc1
      Nyakku Shigure 提交于
      * [CodeStyle][F811] fix some unittests
      
      * fix setup.py
      
      * remove ignore from flake8 config
      
      * remove repeat TestAbsDoubleGradCheck
      
      * fix rrelu test
      
      * fix fft ut
      
      * add noqa in fluid.lstm ut
      
      * add rtol and atol in test_matmul_v2_op
      
      * update rtol
      
      * empty commit
      
      * empty commit
      
      * revert changes in matmul ut and add noqa
      
      * rename test case name
      cdf31dc1
    • rm autograd func dynamic eager tests (#48788) · cf799525
      姜永久 提交于
      cf799525
    • G
      Delete duplicate quant nodes in QAT (#48751) · a85dedf9
      Guanghua Yu 提交于
      a85dedf9
    • 2
      2a31c9dd
    • R
      [Fluid Clean]move inplace_apis_indygraph_only from... · b731fb82
      risemeup1 提交于
      [Fluid Clean]move inplace_apis_indygraph_only from paddle.flud.dygraph.inplace_utils to paddle.utils (#48744)
      
      * move inplace_apis_indygraph_only from paddle.flud.dygraph.inplace_utils to paddle.utils
      
      * modify conflict
      
      * modify conflict
      
      * modify conflict
      
      * modify conflict
      
      * modify conflict
      
      * modify conflict
      
      * modify conflict
      
      * modify static-check ci error
      
      * fix conflict
      
      * modify failed tests
      
      * fix conflict
      
      * fix conflict
      
      * fix pool2d examples
      
      * modify conflict
      
      * fix failed tests
      
      * fix conflict
      
      * fix failed tests
      
      * modfiy problem of deleting pool2d
      b731fb82
  2. 07 12月, 2022 13 次提交
    • Z
      [fluid remove]: remove paddle.fluid.layers.yolo_box and paddle.fluid.layers.yolov3_loss (#48722) · d3e9e73a
      zqw_1997 提交于
      * remove paddle.fluid.layers.nn.temporal_shift
      
      * code check
      
      * rm unittest
      
      * remove fluid.yolo_box
      
      * remove fluid.yolov3_loss
      
      * change the comments of yolov3_loss to yolo_loss
      d3e9e73a
    • H
      e677b5e5
    • Z
      修改了英文API文档 (#48219) · 4aad4dc5
      Zman 提交于
      * 修改paddle.nn.dynamic_decode,paddle.nn.functional.diag_embed 示例
      
      * mma qk tensor_core (#48087)
      
      * use mma for QK dot computing in fused_multi_transformer.
      * Update fused_multi_transformer_op.cu.h
      
      * remove lrn which is not used in paddle 2.0 (#47945)
      
      * replace scatter_nd and scatter_nd_add with paddle.scatter_nd and (#47960)
      
      paddle.scatter_nd_add
      
      * [PHI] Migrate mul_grad kernel (#48061)
      
      * cleanup unused code
      
      * unify is_int8 is_bfloat16
      
      * Simplify matmul_v2 FWD kernel
      
      * remove RunKernel methods
      
      * remove import namespace
      
      * remove headers
      
      * clean fluid/phi cross imports
      
      * remove fluid axpy_handler
      
      * delete fluid methods
      
      * activations
      
      * OneDNNMemDesc
      
      * MKLDNNFormatForSize
      
      * MatchShapeToLayout
      
      * MKLDNNMemoryFormat
      
      * MKLDNNFormat
      
      * ReorderMKLDNNHandler
      
      * to_void_cast
      
      * review suggestions
      
      * interpolate
      
      * remove fluid depedency
      
      * init
      
      * ExecuteMatMulV2
      
      * rm fluid kernel
      
      * matmul_grad
      
      * remove mutable_data
      
      * mul_grad
      
      * delete unnecessary shape and slice op (#48112)
      
      * 修改英文文档。
      
      * 修改segment operator等英文文档。
      
      * 重新修改了paddle.einsum,paddle.unique_consecutive,
      paddle.disable_signal_handler的英文文档格式。
      
      * 重新修改了英文文档格式。;test=docs_preview
      
      * Update extension.py
      
      * 重新修改了英文文档格式。;test=docs_preview
      
      * 重新修改了英文文档格式。
      待验收:
      - paddle.linalg.svd
      - paddle.nn.functional.diag_embed
      - paddle.set_grad_enabled
      - paddle.disable_signal_handler
      - paddle.cumprod
      - paddle.devaice.cuda.stream_guard
      
      待修改:
      - paddle.nn.dynamic_decode
      - paddle.einsum
      - paddle.unique_consecutive
      - paddle.linalg.svd
      - paddle.uncubate.segment_min
      - paddle.uncubate.segment_max
      - paddle.uncubate.segment_sum
      - paddle.uncubate.segment_mean
      
      ;test=docs_preview
      
      * 重新修改了英文文档格式。
      待验收:
      - paddle.linalg.svd
      - paddle.nn.functional.diag_embed
      - paddle.set_grad_enabled
      - paddle.disable_signal_handler
      - paddle.cumprod
      - paddle.devaice.cuda.stream_guard
      - paddle.nn.dynamic_decode
      - paddle.unique_consecutive
      - paddle.linalg.svd
      
      待修改:
      - paddle.einsum
      - paddle.incubate.segment_min
      - paddle.incubate.segment_max
      - paddle.incubate.segment_sum
      - paddle.incubate.segment_mean
      
      ;test=docs_preview
      
      * 重新修改了英文文档格式。
      待验收:
      - paddle.linalg.svd
      - paddle.nn.functional.diag_embed
      - paddle.set_grad_enabled
      - paddle.disable_signal_handler
      - paddle.cumprod
      - paddle.devaice.cuda.stream_guard
      - paddle.nn.dynamic_decode
      - paddle.unique_consecutive
      - paddle.linalg.svd
      
      待修改:
      - paddle.einsum
      - paddle.incubate.segment_min
      - paddle.incubate.segment_max
      - paddle.incubate.segment_sum
      - paddle.incubate.segment_mean
      
      ;test=docs_preview
      
      * update
      
      * test=docs_preview
      
      * update formula; test=docs_preview
      
      * update formula; test=docs_preview
      
      * remove this operator; test=docs_preview
      
      * add hyper link; test=docs_preview
      
      * add default value; test=docs_preview
      
      * update format; test=docs_preview
      
      * empty commit; test=docs_preview
      
      * fix codestyle issues; test=docs_preview
      
      * empty commit; test=docs_preview
      Co-authored-by: Nlzy <569782149@qq.com>
      Co-authored-by: NVvsmile <450864116@qq.com>
      Co-authored-by: NSławomir Siwek <slawomir.siwek@intel.com>
      Co-authored-by: NRichardWooSJTU <37864677+RichardWooSJTU@users.noreply.github.com>
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      4aad4dc5
    • K
    • W
      [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv (#48654) · c2f15f05
      wangzhen38 提交于
      * [remove fluid] PRelu BilinearTensorProduct
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      
      * [remove fluid] PRelu BilinearTensorProduct Conv2DTranspose SequenceConv RowConv
      c2f15f05
    • X
      【fluid api clear】Move batch norm1 (#47965) · 9a9e0aa0
      xiaoguoguo626807 提交于
      * modify slice infershape
      
      * code style
      
      * modify slice_unittest
      
      * temp fix
      
      * batch_norm api move
      
      * code_style
      
      * codestyle
      
      * ci_static
      
      * add __init__
      
      * reset other change
      
      * revert .cc
      
      * add import batchnorm
      
      * conflict and revert
      
      * fix bug
      
      * fix third conflict one day
      
      * fix conflict
      
      * fix conflict bug
      
      * fix conflict bug
      
      * modify api
      
      * code_style
      
      * modify doc
      
      * add lost doc stable
      
      * fix conflict bug
      
      * ci lack of gpu
      9a9e0aa0
    • [Zero-Dim] Support 0D for paddle.diagflat (#48735) · 1a3d2592
      傅剑寒 提交于
      * [Zero-Dim] Support 0D for paddle.diagflat
      1a3d2592
    • Q
      update kl1 op list and optimize matmul unitest for kunlun (#48775) · 93b7ccf5
      QingshuChen 提交于
      *test=kunlun
      93b7ccf5
    • Q
    • 2
      delete sampling_id api (#48543) · c6a2b0fd
      201716010711 提交于
      c6a2b0fd
    • W
      rm _test_eager_guard (#48767) · ddd5656a
      Weilong Wu 提交于
      ddd5656a
    • Z
      0d8ddf9f
    • N
  3. 06 12月, 2022 14 次提交
    • C
      clear tmp var in ptq (#48660) · c838c1ed
      ceci3 提交于
      c838c1ed
    • Z
      Clear extra input (Bias, ResidualData) in OpMaker of conv2d (#47579) · 0a2dfa38
      zyfncg 提交于
      * delete Bias and ResidualData in OpMaker of conv2d
      
      * delete extra input of conv3d
      
      * refactor pass of conv_bias_fusion
      
      * fix mkldnn dependency
      
      * fix mkldnn compile
      
      * fix test_conv_bias_mkldnn_fuse_pass
      
      * police some code
      
      * remove useless log
      
      * fix analyzer_vit_ocr_tester
      
      * fix conv_activation_mkldnn_fuse_pass
      
      * fix test_analyzer_ocr
      
      * add fused_conv_sig
      
      * fix performence regression
      
      * fix performance regression
      0a2dfa38
    • N
      [CodeStyle][isort][Dy2St] sort imports in test_error (#48746) · 888631b6
      Nyakku Shigure 提交于
      * [CodeStyle][isort][Dy2St] sort imports in test_error
      
      * update lineno
      888631b6
    • W
      update for untrainable params for stage3. (#48577) · e4ee872c
      wuhuachaocoding 提交于
      e4ee872c
    • H
      [XPU] add tile_grad op (#48720) · 8de336f9
      houj04 提交于
      8de336f9
    • K
      Remove fluid matmul (#47988) · 8fb829ba
      kangguangli 提交于
      * remove layers.matmul in nets.py
      
      * remove layers.matmul in rnn_impl/test_quantization_pass/auto_parallel_gpt_model/test_auto_parallel_completion_gpt
      
      * remove layers.matmul in other files
      
      * fix
      
      * fix
      
      * remove layers.matmul itself
      
      * remove ref in CMakeLists.txt and tools directory
      
      * remove matmul in fluid.layers.nn.py
      
      * remove matmul in fluid.dygraph.rnn.py && resotre test_matmul_op.py
      
      * replace matmul in fluid.dygraph.rnn.py && clean api_test in test_matmul_op.py
      
      * fix error && restore empty test_auto_search_dist_matmul_op.py
      
      * fix check in test_auto_parallel_partitioner.py
      
      * fix test_dist_matmul && test_flags_mkldnn_ops_on_off
      
      * fix test_fused_attention_op_xpu.py && test_matmul_op_xpu.py
      
      * remove test_auto_search_dist_matmul_op.py
      
      * remove layers.matmul in auto_parallel_gpt_model.py && fix doc in fluid/io.py
      
      * fix for matmul_grad
      
      * fix codestyle
      
      * fix codestyle
      
      * resolve conflicts error
      
      * restore unit test file but not compiled it for later remove
      
      * fix codestyle
      
      * fix wrong unittest skip
      
      * fix unittest delete
      
      * fix scale cost
      
      * fix scale cost
      
      * resolve conflicts error
      
      * resolve conflicts error
      Co-authored-by: Njakpiase <jakpia21@gmail.com>
      8fb829ba
    • Z
      [fluid remove]: remove paddle.fluid.layers.target_assign,... · 1976cc4b
      zqw_1997 提交于
      [fluid remove]: remove paddle.fluid.layers.target_assign, paddle.fluid.layers.rpn_target_assign, paddle.fluid.layers.retinanet_target_assign and paddle.fluid.layers.ssd_loss (#48669)
      
      * remove paddle.fluid.layers.nn.temporal_shift
      
      * code check
      
      * rm unittest
      
      * remove ssd_loss, target_assigns
      
      * remove target_assign, retinanet_target_assign, rpn_target_assign and ssd_loss
      1976cc4b
    • R
      Add IntermediateLayerGetter (#47908) · 39adb22a
      Ryan 提交于
      39adb22a
    • W
      rm _disable_legacy_dygraph and disable one mkldnn test file (#48721) · 3125733a
      Weilong Wu 提交于
      * rm _disable_legacy_dygraph
      
      * disable test_flags_mkldnn_ops_on_off test
      3125733a
    • W
      [remove fluid] Pool2D (#48707) · d050c188
      wangzhen38 提交于
      d050c188
    • Z
      [inference][trt] add reduce max for trt (#48684) · dd304f31
      Zhang Jun 提交于
      * add reduce max for trt
      dd304f31
    • L
      fix global gather (#48736) · 0c7f3575
      LiYuRio 提交于
      0c7f3575
    • Y
      add xpu centered rmsprop (#48658) · 54b756e2
      ykkk2333 提交于
      * add stat tool
      
      * add roll and roll_grad kernels and strided_slice and strided_slice_grad kernels, test=kunlun
      
      * add xpu rmsprop centered, test=kunlun
      54b756e2
    • W
      [remove fluid] GRUUnit NCE (#48610) · 3ba1237e
      wangzhen38 提交于
      * [remove fluid] GRUUnit NCE
      
      * [remove fluid] GRUUnit NCE
      
      * [remove fluid] GRUUnit NCE
      
      * [remove fluid] GRUUnit NCE
      3ba1237e
  4. 05 12月, 2022 2 次提交