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

Updates integer division to use floor division operator #2234

Merged
merged 1 commit into from
May 19, 2020

Conversation

mruberry
Copy link
Contributor

Integer division using the div operator is deprecated and will throw a RuntimeError in PyTorch 1.6 (and on PyTorch Master very soon). Running a test build with a recent Torchvision commit and integer division using div ('/') disabled revealed this integer division. (see https://circleci.com/api/v1.1/project/github/pytorch/pytorch/5518440/output/104/0?file=true&allocation-id=5ec34242509c7d2f7500a6fb-0-build%2F7440ED7B)

I'll re-run the tests once this is fixed in case it's masking additional issues.

Integer division using the div operator is deprecated and will throw a RuntimeError in PyTorch 1.6 (and on PyTorch Master very soon). Running a test build with a recent Torchvision commit and integer division using div ('/') disabled revealed this integer division. 

I'll re-run the tests once this is fixed in case it's masking additional issues.
@mruberry mruberry requested a review from fmassa May 19, 2020 04:24
Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@fmassa fmassa merged commit 8e611cf into master May 19, 2020
@fmassa fmassa deleted the floordiv_update branch May 19, 2020 09:38
fmassa pushed a commit to fmassa/vision-1 that referenced this pull request Jun 9, 2020
Integer division using the div operator is deprecated and will throw a RuntimeError in PyTorch 1.6 (and on PyTorch Master very soon). Running a test build with a recent Torchvision commit and integer division using div ('/') disabled revealed this integer division. 

I'll re-run the tests once this is fixed in case it's masking additional issues.
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