1. 20 3月, 2023 2 次提交
    • zhouweiwei2014's avatar
    • G
      Fluid clean move out fill constant (#49511) · c985b1ac
      GGBond8488 提交于
      * migrate fill_constant to paddle.tensor
      
      * move fill_constant to paddle.tensor and repalce the reference
      
      * add missing fill_constant replacement
      
      * fix typro
      
      * remove unused import fill_constant
      
      * fix zeros import error
      
      * fix circle import
      
      * fix layers.zeros
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * use paddle.full replace fill_constant in samplecode
      
      * fix sample code
      
      * recovery xpu test
      
      * recovery xpu test
      
      * fix circle import
      
      * fix utils import error
      
      * fix utils error
      
      * fix circle import
      
      * redo
      
      * fix circle import
      
      * fix prim fill constant import
      
      * fix type error
      
      * fix increase error
      
      * fix test error
      
      * fix fill_constant
      c985b1ac
  2. 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
  3. 23 2月, 2023 1 次提交
  4. 16 2月, 2023 1 次提交
    • Z
      Add mean composite rule (#50298) · f7f67b72
      zqw_1997 提交于
      * beta
      
      * small commit
      
      * add batch_norm composite rule
      
      move composite test case
      
      remove unuseful var
      
      add composite op blacklist
      
      * small change v2
      
      * finish the test_composite_mean and test_composite_mean_grad
      
      * add ops assertion to the tests
      
      * add cinn test
      
      * fix the error and inappropriate usage in func: mean_composite
      
      * remove the ref of outer lib in primtives.py
      
      * modify sample code of reduce_sum
      
      * fix composite mean op map
      
      * modify testcases to test more float type
      
      * remove cpu float16 test
      
      * cinn test fix
      
      * remove reduce_max
      
      * change the name sum to sum_x
      
      * change the use of reduce_sum to sum
      
      ---------
      Co-authored-by: Ncyber-pioneer <chenzhuo@tju.edu.cn>
      f7f67b72
  5. 14 2月, 2023 1 次提交
  6. 07 2月, 2023 1 次提交
  7. 01 2月, 2023 1 次提交
    • 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
  8. 20 1月, 2023 1 次提交
    • G
      Fluid clean remove io data (#49301) · 5670644c
      GGBond8488 提交于
      * replace paddle.fluid.layers.data and remove io.data
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * remove data in fluid.layers.io.__all__
      
      * fix errors
      
      * fix unitests
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * fix test_layers unitests
      
      * fix typro
      
      * fix unitest
      
      * fix unitest
      
      * fix unitest
      
      * fix typro
      
      * fix unitest test_model_cast_to_bf16
      
      * fix test_reducescatter
      
      * fix collective unitest
      
      * fix collective unitests
      
      * fix collective unitests
      
      * add coverage
      
      * fix add layers.data
      
      * re run ci
      
      * fix some typro
      
      * fix samplecode error
      
      * fix samplecode error
      5670644c
  9. 03 1月, 2023 2 次提交
  10. 29 12月, 2022 1 次提交
    • rm in_legacy part8 (#49386) · 1c7ae954
      姜永久 提交于
      * rm legacy layers part6
      
      * rm non_static_mode
      
      * modify non_static
      
      * minor change
      
      * rm loss
      
      * rm in_legacy part8
      
      * minor change
      1c7ae954
  11. 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
  12. 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
  13. 19 12月, 2022 4 次提交
  14. 16 12月, 2022 2 次提交
    • V
      [Clean Fluid API]Remove API: unsqueeze, use paddle.unsqueeze to replace... · 1ca86fc6
      Vvsmile 提交于
      [Clean Fluid API]Remove API: unsqueeze, use paddle.unsqueeze to replace paddle.fluid.layers.unsqueeze (#47936)
      
      * Remove API: unsqueeze
      	Replace the funcation call.
      	Use paddle.unsqueeze to replace paddle.fluid.layers.unsqueeze
      
      * Remove API: unsqueeze
      	remove unsqueeze which is not used in Paddle 2.0
      
      * Remove API: unsqueeze
      	fix the bug by adding 'import paddle' to file
      tests/unittests/test_rnn_cell_api.py
      
      * Modify the call of unsqueeze from old style to new style
      
      * fix the call arguments of unsqueeze
      
      * replace unqueeze with paddle.unsqueeze
      
      * fix the error in PR-CI-Static-Check, name 'paddle' is not defined
      
      * fix the error in static in unsqueeze
      1ca86fc6
    • K
  15. 15 12月, 2022 1 次提交
  16. 14 12月, 2022 1 次提交
  17. 13 12月, 2022 1 次提交
  18. 12 12月, 2022 1 次提交
    • H
      [Clean fluid] Add inner function _elementwise_op_with_axis (#48748) · 9aef0e3e
      HongyuJia 提交于
      * add inner function _elementwise_op_with_axis
      
      * fix transformer_model
      
      * polish API code
      
      * remove elementwise_div/mul api
      
      * delete API in __all__
      
      * delete elementwise_mul completely
      
      * polish elementwise_mul call
      
      * polish internal api
      
      * resolve conflict, fix rnn.py
      
      * use non-inplace call
      
      * delete elementwise_mul api test
      
      * delete elementwise_mul api test
      
      * clean elementwise_add/sub
      
      * restore _elementwise_op_in_dygraph in nn.py
      9aef0e3e
  19. 08 12月, 2022 4 次提交
  20. 07 12月, 2022 2 次提交
    • 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
    • 2
      delete sampling_id api (#48543) · c6a2b0fd
      201716010711 提交于
      c6a2b0fd
  21. 06 12月, 2022 1 次提交
    • 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
  22. 05 12月, 2022 5 次提交
  23. 02 12月, 2022 4 次提交
    • C
      remove softmax api from fluid (#48388) · a3ae080a
      Charles-hit 提交于
      * move softmax to paddle2.0
      
      * fix some bugs
      
      * resolve conflict
      
      * remove some code
      
      * modify code style
      
      * fix bugs
      
      * fix code
      
      * fix move code
      
      * fix some bugs
      
      * fix code
      
      * fix some code
      
      * modify the header file
      
      * fix bugs
      
      * fix some examples
      
      * fix mish example
      
      * fix code
      a3ae080a
    • Z
      [fluid remove]: remove paddle.fluid.layers.nn.temporal_shift and... · 49656af3
      zqw_1997 提交于
      [fluid remove]: remove paddle.fluid.layers.nn.temporal_shift and paddle.fluid.layers.sigmoid_focal_loss (#48553)
      
      * remove paddle.fluid.layers.nn.temporal_shift
      
      * code check
      
      * rm unittest
      
      * remove paddle.fluid.layers.sigmoid_focal_loss
      49656af3
    • V
      [Clean Fluid API]Remove API: pad (#48100) · a7c43ffa
      Vvsmile 提交于
      * replace pad with paddle.nn.functional.pad and fix call arguments
      
      * solve the ImportError in PR-CI-Mac-Python3, which is called "cannot
      import name 'assign' from 'paddle.fluid.layers'"
      
      * fix the CI error of remove_pad by remove import paddle.nn.functional as
      F
      
      * fix the ImportError of remove_pad
      
      * fix functional call of pad
      a7c43ffa
    • H