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 integer division error #163

Merged
merged 3 commits into from
Jul 29, 2022
Merged

Conversation

gyes00205
Copy link
Contributor

In PyTorch 1.7.0 integer division of tensors using div or / is no longer
supported. Therefore, to avoid this error, convert sample_stride to
float type.

In PyTorch 1.7.0 integer division of tensors using div or / is no longer
supported. Therefore, to avoid this error, convert sample_stride to
float type.
@zhijian-liu
Copy link
Contributor

zhijian-liu commented Jul 29, 2022

@gyes00205, thanks so much! Could you please fix the error raised by pre-commit? I think you could probably add # type: ignore at the end of this line to suppress the wield type error raised by mypy.

@zhijian-liu zhijian-liu self-requested a review July 29, 2022 06:31
@gyes00205
Copy link
Contributor Author

Thanks, I will fix this error

@zhijian-liu zhijian-liu merged commit 69c1034 into mit-han-lab:master Jul 29, 2022
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