Skip to content

Conversation

@NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Jun 13, 2023

Fixes #7667

cc @vfdev-5

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 13, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7669

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

img = torch.randint(0, 256, size=(1, 3, 100, 100), dtype=torch.float16)
out = F.resize(img, size=(10, 10))
assert out.dtype == torch.float16
assert (out.round() - out).sum() > 0
Copy link
Member Author

Choose a reason for hiding this comment

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

This fails on main

Copy link
Contributor

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix and catching that, lgtm !

@NicolasHug
Copy link
Member Author

There are some failures but the current CI makes it impossible to see them. The hud doesn't seem to be working either. Most test jobs are passing anyway so I"ll merge .

@NicolasHug NicolasHug merged commit e44bba1 into pytorch:main Jun 13, 2023
facebook-github-bot pushed a commit that referenced this pull request Jun 14, 2023
Reviewed By: vmoens

Differential Revision: D46724116

fbshipit-source-id: 91eb40da4f1ecf03e81b97bcf5e220428f52997e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResizeV2 is calling round() on float16

3 participants