1. 11 8月, 2023 1 次提交
    • 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
  2. 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
  3. 14 6月, 2023 1 次提交
    • S
      Fix A100 CUDA12 ut (#54487) · a96c6dc7
      sneaxiy 提交于
      * fix A100 CUDA12 ut
      
      * fix ci uts
      
      * fix test_sync_batch_norm_op
      
      * fix sync bn op ut again by separating 2 files
      
      * fix codestyle ci
      
      * combine other PRs
      
      * fix codestyle
      
      * fix codestyle ci
      a96c6dc7
  4. 12 6月, 2023 1 次提交
  5. 09 6月, 2023 1 次提交
  6. 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
  7. 11 5月, 2023 1 次提交
  8. 23 4月, 2023 1 次提交
    • L
      relocate paddle/fluid/contrib/layers (#52820) · 802be98b
      LoneRanger 提交于
      * relocate metri_op.py
      
      * reloacte nn.py
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix variable->tensor and fix __all__
      
      * fix ctr_metric_bundle and sparse_embedding
      
      * fix bug of function init
      
      * fix bug of importing sparse_embedding and ctr_metric_bundle
      
      * fix bug
      
      * Update __init__.py
      802be98b
  9. 22 4月, 2023 1 次提交
  10. 10 4月, 2023 1 次提交
    • Q
      【AMP OP&Test】instance_norm fp16 and bf16 support. (#52241) · 7c98abd9
      qizhaoaoe 提交于
      * add fp16 and bf16 support for instance_norm
      
      * fix /= operator which not support bf16
      
      * fix instance_norm_grad kernel and unittests.
      
      * fix fp32 unittests.
      
      * fix instance_norm_kernel and unittests.
      
      * fix instance_norm_grad_kernel and unittest threshold.
      
      * add fp16/bf16 for instance_norm_grad_grad op.
      
      * add bf16 dtype check.
      
      * fix conflicts.
      
      * fix cpu support for fp32 op and fix type in instance_norm_grad_kernel.
      
      * fix type in instance_norm_kernel.
      
      * fix bf16 outputs in unittests and refine codes.
      
      * fix dx computation.
      
      * delete unuseful params and head including.
      
      * add fp16/bf16 for static graph.
      
      * fix device condiction for instance_norm op.
      
      * fix instance_norm_grad_grad and bf16 op tests.
      
      * fix op_test to support grad of bf16 can be compared with fp32.
      
      * remove updates.
      
      * add self-defined grad.
      7c98abd9
  11. 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
  12. 31 3月, 2023 1 次提交
  13. 30 3月, 2023 1 次提交
  14. 28 3月, 2023 1 次提交
  15. 23 3月, 2023 1 次提交
  16. 14 3月, 2023 1 次提交
  17. 09 3月, 2023 1 次提交
    • Z
      Remove paddle.fluid.layers.utils.* (#51033) · 86e990d4
      zqw_1997 提交于
      * move fluid.utils to paddle.utils.layers_utils
      
      * fix error
      
      * delete original fluid layers utils
      
      * remove import and old utils
      
      * remove more old utils import
      
      * change import path of fill_constant in the layers_utils.py
      
      * fix mistake
      
      * fix error
      
      * expose in __init__.py
      
      * for comment
      
      * when change the ref of func is_sequence, it should change to the root of is_sequence instead
      
      * for codecheck
      86e990d4
  18. 23 2月, 2023 1 次提交
  19. 22 2月, 2023 1 次提交
  20. 06 2月, 2023 2 次提交
  21. 01 2月, 2023 2 次提交
    • Z
      remove fluid.initializer.UniformInitializer, ConstantInitializer,... · 6edc7bba
      zqw_1997 提交于
      remove fluid.initializer.UniformInitializer, ConstantInitializer, NormalInitializer, TruncatedNormalInitializer, XavierInitializer, BilinearInitializer, MSRAInitializer, NumpyArrayInitializer and calculate_gain.. (#49498)
      
      * move UniformInitializer and ConstantInitializer
      
      * more modify
      
      * circular import resolved
      
      * another circular import resolved?
      
      * more circular import 2
      
      * circular import 3
      
      * change import paddle in metric.py
      
      * BuildStrategy import from fluid
      
      * modify the framework import path in common.py
      
      * change rnn.py import, from static to original framework
      
      * change import static in the nn folder
      
      * default_main_program should import from common_ops_import
      
      * add import paddle in param_attr.py
      
      * use core not paddle module for using VarDesc
      
      * another old uniform
      
      * mistake that use Uniform instead of UniformInitializer
      
      * modify UniformInitializer doc
      
      * move fluid.NormalInitializer to nn.initializer.NormalInitializer
      
      * remove import of Normal in fluid.layers.nn.py
      
      * remove more import of old Normal
      
      * remove more import of old Normal
      
      * sample code modify and tests modify import
      
      * is_listen_failed passing arg should be log file
      
      * problem solved
      
      * a mistake solved
      
      * comments resoleved and remove paddle.fluid.initializer.TruncatedNormalInitializer
      
      * remove paddle.fluid.initializer.XavierInitializer and paddle.fluid.initializer.MSRAInitializer
      
      * remove paddle.fluid.initializer.BilinearInitializer NumpyArrayInitializer and set_global_initializer
      
      * change fluid to static
      
      * change static to fluid to avoid circular import in distributed_strategy.py
      
      * fix example code and test_initializer
      
      * ValueType
      
      * sample code fix
      
      * change set_global_initializer back to fluid
      
      * put paddle.static.BuildStrategy.ReduceStrategy into the fuction to avoid circular import
      
      * remove calculate_gain, delete BilinearInitializer and revert set_global_initializer
      
      * change the time of using UniformInitializer, ConstantInitializer, NormalInitializer, TruncatedNormalInitializer, XavierInitializer, MSRAInitializer, NumpyArrayInitializer as few as possible
      
      * fix argument incampatible
      
      * fix more arg incompatible
      
      * fix test_prelu_op_xpu.py Constant
      
      * fix inaccurate doc
      
      * more doc fix: default value
      6edc7bba
    • R
      Fix Python IndexError of case9: paddle.static.nn.deform_conv2d (#49990) · c62657b3
      RedContritio 提交于
      * add dimension check for deformable_conv
      
      * add unittest
      c62657b3
  22. 31 1月, 2023 2 次提交
  23. 30 1月, 2023 2 次提交
  24. 03 1月, 2023 1 次提交
  25. 30 12月, 2022 1 次提交
  26. 23 12月, 2022 1 次提交
    • L
      Fix docs(91-100) (#49109) · 1bbc9b64
      LoneRanger 提交于
      * 修改linspace参数"stop"的介绍
      
      * 更新了conv2d_transpose英文文档中 1.公式异常 2.参数说明异常 3.padding=SAME和VALID的公式说明; test=docs_preview
      
      * 解决了
      1.英文版Note中的api_fluid_layers_conv2d的链接失效,
      2. 英文版参数中的padding_start的参数错误
      3. 参数中bias_attr和param_attr的链接失效
      4. 参数缺少optional
      
      * 更新了paddle.static.auc的英文文档的Return描述以及函数的参数
      
      * Update python/paddle/tensor/creation.py
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      
      * 更新了shard_index的ignore_value描述
      
      * 修改了英文文档的paddle.static.nn.conv3d_transpose的公式介绍
      
      * add py_func COPY-FROM label; test=document_fix
      
      * Update python/paddle/tensor/manipulation.py
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      
      * formula; test=document_fix
      
      * formula; test=document_fix
      
      * formula; test=document_fix
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      1bbc9b64
  27. 22 12月, 2022 1 次提交
    • G
      Clean Fluid APIs in padde.fluid.layers.nn (#48908) · dc694f1e
      Ghost Screaming 提交于
      * Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
      is wrong.
      
      * Remove climits.
      
      * Clean Fluid APIs in python/paddle/fluid/layers/nn.py,
      migrate spectral_norm and row_conv APIs, and remove ont_hot.
      Including following files:
      1. python/paddle/fluid/layers/nn.py
      2. python/paddle/fluid/tests/unittests/collective/fleet/parallel_dygraph_transformer.py
      3. python/paddle/fluid/tests/unittests/dist_transformer.py
      4. python/paddle/fluid/tests/unittests/dygraph_to_static/transformer_dygraph_model.py
      5. python/paddle/fluid/tests/unittests/ipu/test_one_hot_op_ipu.py
      6. python/paddle/fluid/tests/unittests/test_imperative_auto_prune.py
      7. python/paddle/fluid/tests/unittests/test_imperative_load_static_param.py
      8. python/paddle/fluid/tests/unittests/test_layers.py
      9. python/paddle/fluid/tests/unittests/test_one_hot_op.py
      10. python/paddle/fluid/tests/unittests/test_row_conv_op.py
      11. python/paddle/fluid/tests/unittests/test_runtime_and_compiletime_exception.py
      12. python/paddle/fluid/tests/unittests/test_spectral_norm_op.py
      13. python/paddle/static/nn/__init__.py
      14. python/paddle/static/nn/common.py
      
      * Polish code.
      
      * Fix some bugs.
      
      * Remove useless unittest.
      
      * Fix some bug.
      
      * Polish example code.
      
      * Fix some bugs.
      
      * Fix some bugs.
      dc694f1e
  28. 21 12月, 2022 1 次提交
    • Z
      remove paddle.fluid.layers.layer_norm (#49174) · b333d7ed
      zqw_1997 提交于
      * remove paddle.fluid.layers.layer_norm
      
      * templatedoc import from paddle.fluid.layers.layer_function_generator
      
      * del import of fluid.layers.layer_norm in __init__.py
      
      * add import of ..common.layer_norm in __init__.py
      
      * fix bug in UT
      
      * fix doc
      b333d7ed
  29. 20 12月, 2022 1 次提交
  30. 19 12月, 2022 1 次提交
  31. 15 12月, 2022 2 次提交
    • 学渣戊's avatar
      按在线文档需求 61~70 更新了部分文档 (#49014) · a9ed6f96
      学渣戊 提交于
      * Update docstring:
      1. 去除 python/paddle/tensor/manipulation.py 中 cast 函数描述中的 This OP;
      2. 调整 python/paddle/fluid/layers/control_flow.py 中 Print 函数中参数描述的顺序,添加 optional 描述;
      3. 为 python/paddle/tensor/logic.py 中 logical_and 函数添加 optional 描述;
      4. 为 python/paddle/fluid/reader.py 中 DataLoader 类中 from_generator、from_dataset 函数添加 optional 描述;
      5. 在 python/paddle/fluid/layers/nn.py 中 crf_decoding 函数的 param_attr 在使用中确实可视为存在默认值 None,故添加 optional 描述;
      6. 修复 python/paddle/static/nn/common.py 中 data_norm 函数描述里 tex 语法错误的问题,并一并修复同一文件中的相同问题。
      
      * 根据 review 意见修改部分内容。
      
      * 将谓语动词去掉第三人称单数形式。
      
      * 同步中文文档变更。
      
      * string-->str; test=document_fix
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      a9ed6f96
    • H
      Remove/move 16 fluid APIs (#48377) · e577040e
      HydrogenSulfate 提交于
      * remove density_prior_box
      
      * remove anchor_generator
      
      * remove roi_perspective_transform
      
      * remove generate_proposal_labels
      
      * remove generate_mask_labels
      
      * remove generate_proposals
      
      * remove box_clip
      
      * remove retinanet_detection_output
      
      * remove multiclass_nms
      
      * remove locality_aware_nms
      
      * remove matrix_nms
      
      * remove distribute_fpn_proposals
      
      * remove box_decoder_and_assign
      
      * remove collect_fpn_proposals
      
      * remove 2 trt files
      
      * move prior_box to static/nn/common.py
      
      * move multi_box_head to static/nn/common.py
      
      * fix for CI/CE
      
      * remove retinanet_detection_output
      
      * restore compile_vs_runtime_white_list.py
      
      * restore test_retinanet_detection_output to white list
      
      * replace nn.flatten by paddle.flatten, and fix doc for retinanet_target_assign
      
      * add enable_static in demo and fix bug
      
      * remove roi_perspective_transform in test_layers
      
      * remove multi_box_head
      
      * change self.multiclass_nms to _legacy_C_ops.multiclass_nms
      
      * empty commit
      
      * empty commit
      
      * check code style
      
      * fix prior_box
      
      * fix CI
      
      * remove redundant prior_box in detection.py
      
      * fix docs
      
      * remove detection
      
      * fix prior_box en doc
      
      * delete prior_box in common
      
      * remote proir_box from __init__.py
      e577040e
  32. 13 12月, 2022 1 次提交
    • W
      [api move] cvm (#48989) · 121b7429
      wangzhen38 提交于
      * [api move] cvm
      
      * [api move] cvm
      
      * [api move] cvm
      
      * [api move] cvm
      
      * [api move] cvm
      
      * [api move] cvm
      
      * [api move] cvm
      
      * [api move] ci test
      
      * [api move] ci test
      
      * [api move] ci test
      121b7429
  33. 07 12月, 2022 1 次提交
    • 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
  34. 05 12月, 2022 1 次提交
    • Y
      [Clean fluid] Clean hash, grid_sampler, log_loss, bilinear_tensor_product. (#48411) · cb812f40
      yunyaoXYY 提交于
      * Clean fliud hash
      
      * clean fluid grid_sampler
      
      * clean log_loss
      
      * Move bilinear_tensor_product from fluid to static
      
      * Fix unitests when remove log_loss
      
      * Fix bug when move bilinear_tensor_product
      
      * fix test_fleet_nocvm_1.py
      
      * Add bilinear_tensor_product into all list
      
      * Fix code style
      
      * Fix comments in bilinear_tensor_product
      
      * Fix comments in bilinear_tensor_product
      
      * Fix comments
      cb812f40
  35. 02 12月, 2022 1 次提交