Skip to content

Conversation

@zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Dec 29, 2022

PR types

Bug fixes

PR changes

Others

Describe

修复PR-CI-Windows-Inference 单测test_conv_bn_fuse_pass_cc随机出现的如下错误:
image

错误原因为Windows系统下tensor调用mutable_data接口分配的初始内存里默认值会有一定随机性,从而导致后续计算出现问题,修复方式为对该块内存进行赋值填充,避免随机默认值的情况出现。
Linux下目前使用mutable_data接口分配的初始内存默认值均为0,因此未出现该错误。

@paddle-bot
Copy link

paddle-bot bot commented Dec 29, 2022

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

TEST(ConvBNFusePass, conv2d) { TestMain("conv"); }

TEST(ConvBNFusePass, conv2d_tranpose) { TestMain("conv_transpose"); }
// TEST(ConvBNFusePass, conv2d_tranpose) { TestMain("conv_transpose"); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里注释了是符合预期的?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改,thanks

@zyfncg zyfncg merged commit a4b4343 into PaddlePaddle:develop Dec 30, 2022
@zyfncg zyfncg deleted the fix_test_conv_bn_fuse_pass_cc branch December 30, 2022 08:23
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.

3 participants