Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

【Hackathon 6th No.26】API improvement for nn.initializer.KaimingNormal and nn.initializer.KaimingUniform 易用性提升 -part #63268

Closed
wants to merge 1 commit into from

Conversation

NKNaN
Copy link
Contributor

@NKNaN NKNaN commented Apr 6, 2024

PR Category

User Experience

PR Types

Improvements

Description

增加参数 mode,支持 mode='fan_in' 和 mode='fan_out' ,默认值为 'fan_in'

Copy link

paddle-bot bot commented Apr 6, 2024

你的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.

Copy link

paddle-ci-bot bot commented Apr 14, 2024

Sorry to inform you that dcd4b6e's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@zhwesky2010 zhwesky2010 changed the title API improvement for nn.initializer.KaimingNormal and nn.initializer.KaimingUniform 易用性提升 【Hackathon 6th No.26】API improvement for nn.initializer.KaimingNormal and nn.initializer.KaimingUniform 易用性提升 May 11, 2024
@luotao1 luotao1 changed the title 【Hackathon 6th No.26】API improvement for nn.initializer.KaimingNormal and nn.initializer.KaimingUniform 易用性提升 【Hackathon 6th No.26】API improvement for nn.initializer.KaimingNormal and nn.initializer.KaimingUniform 易用性提升 -part May 11, 2024
@NKNaN
Copy link
Contributor Author

NKNaN commented May 13, 2024

增加 mode 参数之后,在 fan_in 参数为默认值 None 时,mode='fan_in' 和 mode='fan_out' 对齐 pytorch 的功能,计算的时候 fan 值是自动推断的;
原来的 fan_in 参数是比 pytorch 多出的参数,若 fan_in 参数是一个用户指定的值,计算时用这个指定值作为 fan 值。

Copy link

paddle-ci-bot bot commented May 20, 2024

Sorry to inform you that 098d18e's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators May 21, 2024
@PaddlePaddle PaddlePaddle unlocked this conversation May 21, 2024
@luotao1 luotao1 closed this Dec 3, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants