-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
fix failed tests in numpy2.0 #65627
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test/legacy_test/test_transforms.py
Outdated
@@ -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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个注释可以之后 PR 清理下~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
PR Category
Environment Adaptation
PR Types
Bug fixes
Description
修复numpy2.0下的失败单测
pcard-67164