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

Use boolean indexing in apmeter #128

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Use boolean indexing in apmeter #128

merged 1 commit into from
Jan 15, 2020

Conversation

ErikStammes
Copy link
Contributor

Newer PyTorch versions throw a UserWarning each time indexing with dtype torch.uint8 occurs, i.e.:

/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.

This PR makes sure the apmeter uses dtype torch.bool when indexing.

@szagoruyko szagoruyko merged commit 32ab2bc into pytorch:master Jan 15, 2020
@szagoruyko
Copy link
Contributor

thanks @ErikStammes !

edward-io pushed a commit to edward-io/tnt that referenced this pull request Oct 19, 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