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 floordiv warning. #8738

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Fix floordiv warning. #8738

merged 2 commits into from
Sep 21, 2022

Conversation

JiayuXu0
Copy link
Contributor

@JiayuXu0 JiayuXu0 commented Sep 6, 2022

Motivation

In SOLO code, floordiv is deprecated, and its behavior will change in a future version of pytorch.

Modification

torch.div(a, b, rounding_mode='trunc') is used to replace floordiv.

@JiayuXu0
Copy link
Contributor Author

JiayuXu0 commented Sep 6, 2022

@ZwwWayne The code is re-summited here.

@ZwwWayne
Copy link
Collaborator

ZwwWayne commented Sep 9, 2022

Hi @JiayuXu0 ,
Thanks for your kind PR. Would you like to fix the conflict so that we can merge it?

@ZwwWayne ZwwWayne added this to the 3.0.0rc1 milestone Sep 9, 2022
@JiayuXu0
Copy link
Contributor Author

Hi @JiayuXu0 , Thanks for your kind PR. Would you like to fix the conflict so that we can merge it?

The conflict has been fixed.

@RangiLyu RangiLyu added the v-3.x label Sep 14, 2022
RangiLyu
RangiLyu previously approved these changes Sep 14, 2022
ZwwWayne
ZwwWayne previously approved these changes Sep 19, 2022
@ZwwWayne ZwwWayne dismissed stale reviews from RangiLyu and themself via 0057860 September 19, 2022 08:47
@ZwwWayne ZwwWayne merged commit ccc95aa into open-mmlab:dev-3.x Sep 21, 2022
ZwwWayne added a commit that referenced this pull request Sep 26, 2022
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants