Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix test_paddle_save_load and test_paddle_save_load_binary #32949

Merged
merged 4 commits into from
May 19, 2021

Conversation

hbwx24
Copy link
Contributor

@hbwx24 hbwx24 commented May 18, 2021

PR types

Bug fixes

PR changes

Others

Describe

  • test_paddle_save_load 单测随机挂:使用np.ndarray生成随机数组,可能生成nan,造成做对比时结果不匹配(nan != nan)。改为np.random.randn生成随机数组。

  • test_paddle_save_load_binary随机挂: 如果一个字符串不能解析为Program,windows上会有超时风险。解决方法:不在windows平台不加载'不能解析为Program的字符串'。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@chenwhql chenwhql merged commit 6f8de31 into PaddlePaddle:develop May 19, 2021
hbwx24 added a commit to hbwx24/Paddle that referenced this pull request May 20, 2021
…dle#32949)

* fix test_paddle_save_load and test_paddle_save_load_binary

* fix unittest:test_paddle_save_load and test_paddle_save_load_binary

* delete *.pyc

* add comment for unittest
lanxianghit pushed a commit that referenced this pull request May 20, 2021
…ary (#32949) (#33008)

    test_paddle_save_load 单测随机挂:使用np.ndarray生成随机数组,可能生成nan,造成做对比时结果不匹配(nan != nan)。改为np.random.randn生成随机数组。

    test_paddle_save_load_binary随机挂: 如果一个字符串不能解析为Program,windows上会有超时风险。解决方法:不在windows平台不加载'不能解析为Program的字符串'。

原始PR:#32949
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