1. 31 7月, 2023 1 次提交
  2. 25 7月, 2023 1 次提交
  3. 27 6月, 2023 1 次提交
  4. 01 6月, 2023 2 次提交
    • C
      [AMP Prim OP]support bf16 dtype for layer_norm prim op (#54236) · e3fcbb8f
      Charles-hit 提交于
      * support layer_norm prim op bf16 dtype
      
      * polish code
      
      * resolve conflict
      e3fcbb8f
    • T
      mv all unittests test (#53235) · b0e86d55
      tianshuo78520a 提交于
      * mv all unittests test
      
      * fix error
      
      * fix error
      
      * fix
      
      * fix
      
      * del unittests
      
      * fix paddle_build.sh
      
      * fix
      
      * fix test
      
      * fix add test
      
      * fix
      
      * fix
      
      * fix
      
      * merge develop
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * merge develop
      
      * fix test_async_read_write
      
      * fix test_async_read_write
      
      * merge develop
      
      * fix
      
      * fix import legacy_test
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix bug
      
      * fix
      
      * fix coverage test bug
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix code sstyle
      
      * fix code
      
      * fix code
      
      * fix
      
      * fix
      
      * fix
      
      * del test_sequence_enumerate_op.py
      
      * fix
      b0e86d55
  5. 30 3月, 2023 1 次提交
    • W
      support prim & cinn test for layer_norm (#51272) · 84504f35
      Weilong Wu 提交于
      * support layer_norm prim and cinn test
      
      * enable cinn test
      
      * fix merge conflict
      
      * polish input for check_output_with_place
      
      * fix merge conflict
      
      * add more test case
      
      * fix merge conflict
      
      * polish test case
      
      * polish op_test
      
      * change ln_g rules
      
      * modify scale is none case
      
      * modify scale is none case
      
      * add public_python_api for check prim
      
      * modify setoutputgrad and fp64bug
      
      * add todo & delete log
      
      * recover
      
      * fix some errors
      
      * recover
      
      * recover
      
      * recover
      
      * recover
      
      * fix merge conflicts
      
      ---------
      Co-authored-by: Nwangruting <wangruting@baidu.com>
      84504f35
  6. 29 3月, 2023 1 次提交
  7. 25 3月, 2023 1 次提交
  8. 24 3月, 2023 1 次提交
  9. 14 3月, 2023 1 次提交
    • L
      Optimization for layerNormGrad [Part1] (#51282) · 7a3d05d9
      limingshu 提交于
      * first commit
      
      * fix code bugs in for_loop
      
      * fix bugs in cuLoadAddStridedInputs.
      
      * optimization for LayerNormBackwardComputeGradInput
      
      * add unitest for validating the optimization
      
      * fix windows ci error
      7a3d05d9
  10. 23 2月, 2023 1 次提交
  11. 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
  12. 12 1月, 2023 1 次提交
  13. 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
  14. 02 12月, 2022 1 次提交
    • W
      [remove fluid] drop_out API (#48586) · 6af7b42b
      wangzhen38 提交于
      * [remove fluid] drop_out PI
      
      * [remove fluid] drop_out PI
      
      * [remove fluid] drop_out layernorm
      
      * [remove fluid] drop_out layernorm
      
      * [remove fluid] drop_out layernorm
      
      * [remove fluid] drop_out layernorm
      6af7b42b
  15. 29 11月, 2022 1 次提交
  16. 25 10月, 2022 1 次提交
  17. 23 10月, 2022 1 次提交
  18. 27 9月, 2022 1 次提交
  19. 02 9月, 2022 1 次提交
  20. 17 8月, 2022 1 次提交
    • N
      [CodeStyle][NPU] use np.testing.assert_allclose instead of... · 2de0d676
      Nyakku Shigure 提交于
      [CodeStyle][NPU] use np.testing.assert_allclose instead of self.assertTrue(np.allclose(...)) (part 1) (#44988)
      
      * autofix
      
      * try resolve precision issues
      
      * revert some changes
      
      * clean some `err_msg`
      
      * 0.0001 -> 1e-4
      
      * update commented assert code
      
      * try to fix some shape errors
      
      * `numpy` -> `np`
      
      * empty commit, trigger kunlun ci, test=kunlun
      
      * empty commit, retrigger kunlun ci, test=kunlun
      
      * empty commit, trigger kunlun ci, try fix npu memcpy_h2d, test=kunlun
      
      * try fix npu import error, test=kunlun
      2de0d676
  21. 10 8月, 2022 1 次提交
    • N
      [CodeStyle] use np.testing.assert_array_equal instead of... · 93c5c887
      Nyakku Shigure 提交于
      [CodeStyle] use np.testing.assert_array_equal instead of self.assertTrue(np.array_equal(...)) (#44947)
      
      * automatically fix
      
      * update comments
      
      * numpy -> np
      
      * self.assertEqual(..., True)
      
      * wrong usage (err_msg=True)
      
      这不是修复导致的错误,这些是原来 `self.assertTrue(..., True)`
      的错误用法,因此在修复后将其认为位置参数 `err_msg`
      
      * some missing fix
      93c5c887
  22. 10 6月, 2022 1 次提交
  23. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  24. 17 3月, 2022 1 次提交
    • H
      Move layer norm to phi (#40193) · 681a6865
      hong 提交于
      * update
      
      * fix bugs; test=develop
      
      * update; test=develop
      
      * fix test compile error; test=develop
      
      * fix cpu compile error; test=develop
      
      * fix test error; test=develo
      
      * fix layer_norm_op plugin error; test=develop
      
      * fix error; test=develop
      
      * fix test bug; test=develop
      
      * update; test=develop
      
      * polish code; test=develop
      
      * fix bugs; test=develop
      
      * remove unused depency; test=develop
      
      * polish code; test=develop
      681a6865
  25. 01 3月, 2022 1 次提交
    • Z
      [bf16] add bf16 kernel: layer_norm p_norm reduce_sum (#39843) · ce8ed978
      zhangbo9674 提交于
      * add layer norm
      
      * add p norm
      
      * add reduce sum
      
      * refine layer norm register bf16 for cudnn811
      
      * add bf16 cast for hip
      
      * add unittest
      
      * refine rocm
      
      * refine layer_norm unittest
      
      * refine reduce op
      
      * refine unittest
      
      * enhance atol for reduce unittest
      ce8ed978
  26. 26 1月, 2022 1 次提交
  27. 17 12月, 2021 1 次提交
    • S
      Refine some AMP operators for BERT (#37923) · d80fe268
      sneaxiy 提交于
      * support multi precision update for LAMB
      
      * hide some api
      
      * fix ci uts
      
      * fix lamb output of dygraph
      
      * remove some changes to some PR
      
      * try to fix Py3 CI compile error
      
      * fix test_imperative_optimizer, add lars ut, add layer_norm ut
      
      * fix ut, fix format
      
      * fix ut
      
      * fix windows ci
      d80fe268
  28. 08 9月, 2021 1 次提交
    • Z
      fix the bug of layer_norm when batch_size=1 (#35480) · ad5f7494
      zhangkaihuo 提交于
      The bug is that access to mean and var is incorrect, and the array will be out of bounds: the shape of mean and var is [batch_size], and the range of thread idx is 0~feature_size, so mean[idx] and var[idx] is incorrect.
      
      When batch_size=1, the correct access is mean[0] and var[0], and a unit test with batch_size=1 is added.
      ad5f7494
  29. 07 12月, 2020 1 次提交
  30. 02 12月, 2020 1 次提交
    • F
      Layer norm fp16 (#29169) · 7584bb50
      furnace 提交于
      * add fp16 for layer_norm op
      
      * revert layernorm api
      
      * fix forward
      
      * fix forward
      
      * fix backward for layernorm with fp16
      
      * fix unit test for layernorm with fp16
      
      * fix with_mkldnn compile error for layernorm with fp16
      
      * 1. revert to PADDLE_ENFORCE_NOT_NULL, 2. change static_cast<float> to static_cast<U>
      
      * fix with_mkldnn compile error for layernorm with fp16
      
      * fix with_mkldnn compile error for layernorm with fp16
      Co-authored-by: Nzhiqiu <chenqiuliang@baidu.com>
      7584bb50
  31. 17 11月, 2020 1 次提交
  32. 20 4月, 2020 1 次提交
  33. 09 4月, 2020 1 次提交
  34. 20 12月, 2019 1 次提交
    • L
      Copy stop_gradient property of variable in clone (#21825) · 25e765a4
      Leo Chen 提交于
      * copy stop_gradient property in clone, test=develop
      
      * fix pruning issue, test=develop
      
      * fix kLookupTablePath issue, test=develop
      
      * sync program, test=develop
      
      * copy subblocks, test=develop
      
      * add unittests, test=develop
      25e765a4
  35. 03 12月, 2019 1 次提交
  36. 13 10月, 2019 1 次提交
    • G
      Fix basic_gru and docs of gru_unit and dynamic_gru (#19393) · bd99df71
      Guo Sheng 提交于
      * Fix docs of gru_unit and dynamic_gru.
      
      Fix basic_gru in rnn_impl.py.
      
      Add error messages for param_attr setting in layer_norm api.
      
      Add int64 dtype for expand.
      
      test=develop
      
      * Reopen unit-tests of basic_gru/basic_lstm in rnn_impl.py.
      test=develop
      
      * Add unit test for layer_norm api.
      test=develop
      
      * Remove the deprecated gru doc fix. test=develop
      
      * Fix basic_gru test coverage. test=develop
      
      * Update API.spec. test=develop
      
      * Update API.spec. test=develop
      
      * Fix test_basic_gru coverage test. test=develop
      
      * Update test_basic_gru in test_layers to use fluid.data
      test=develop
      
      * Update test_basic_gru for coverage. test=develop
      bd99df71
  37. 19 9月, 2019 1 次提交
    • Y
      Add a pass to fuse fc+elementwise_add+layernorm (#19776) · 3cd985a6
      Yiqun Liu 提交于
      * Add fc_elementwise_layernorm_fuse pass and unittest.
      
      * Add fused_fc_elementwise_layernorm op and its GPU kernel.
      test=develop
      
      * Apply fc_elementwise_layernorm_fuse_pass to GPU inference.
      
      * Add the setting of attrs in the definition of binary_op.
      test=develop
      
      * Add comment.
      
      * Implement the unittest.
      test=develop
      
      * Change the unittest name of layer_norm.
      test=develop
      3cd985a6
  38. 06 6月, 2019 1 次提交
    • P
      [NGraph] Enable ngraph layer_norm operator (#17599) · 39bc8a55
      pawelpiotrowicz 提交于
      * Enable ngraph layer_norm operator
      
      test=develop
      
      * Disable/Enable cuda, new unit-test test=develop
      
      * Fix use_cudnn test=develop
      
      * Fixed test_layer test, new funciton is added test=develop
      
      * set use_cudnn by default test=develop
      39bc8a55
  39. 15 8月, 2018 1 次提交