Skip to content

Conversation

@lijialin03
Copy link
Contributor

PR Category

User Experience

PR Types

Improvements

Description

pcard-67164

paddle.nn.LayerNorm

  1. 增加输入映射 epsilon: eps
  2. 增加 elementwise_affine、bias、device和dtype参数
  3. 增加动态图下的单测
  4. 修改docstring

注意:修改后 elementwise_affine、bias、device、dtype和weight_attr、bias_attr、name都是关键字参数,下面的PaConvert 测试中会出现失败case是正常的

PaConvert 测试

image image image

该失败case已被该PR中新增的单测覆盖:
image

@paddle-bot
Copy link

paddle-bot bot commented Nov 7, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@lijialin03
Copy link
Contributor Author

目前不太确定单测是否可以全部通过,会根据CICE修改单测代码

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@b6a53fc). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #76304   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?        11           
  Branches           ?         0           
===========================================
  Hits               ?        11           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants