Skip to content

fix failed tests in numpy2.0 #65627

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

Merged

Conversation

risemeup1
Copy link
Contributor

@risemeup1 risemeup1 commented Jul 2, 2024

PR Category

Environment Adaptation

PR Types

Bug fixes

Description

修复numpy2.0下的失败单测
pcard-67164

Copy link

paddle-bot bot commented Jul 2, 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.

@risemeup1 risemeup1 changed the title fix numpy bug fix failed tests in numpy2.0 Jul 2, 2024
SigureMo
SigureMo previously approved these changes Jul 2, 2024
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾

@@ -930,13 +930,15 @@ def test_to_tensor(self):
pil_img = Image.fromarray(np_img).convert('I')
pil_tensor = F.to_tensor(pil_img)

pil_img = Image.fromarray(np_img).convert('I;16')
# pil_img = Image.fromarray(np_img).convert('I;16')
Copy link
Member

Choose a reason for hiding this comment

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

这个注释可以之后 PR 清理下~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的

SigureMo
SigureMo previously approved these changes Jul 2, 2024
@risemeup1 risemeup1 merged commit 18dd803 into PaddlePaddle:develop Jul 2, 2024
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