Skip to content

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