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

setWithMaskInPlace creates garbage values when mask is smaller than tensor #270

Closed
icantsayrural opened this issue Oct 3, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@icantsayrural
Copy link
Contributor

Describe the bug
Calling setWithMaskInPlace for Integer and Double tensors with a mask not the same length as the tensor produces unexpected behaviours

To Reproduce
Steps to reproduce the behavior:

  1. call setWithMaskInPlace with a mask with a length different than the tensor
  2. if the mask is smaller, then it will create garbage values for the elements it doesn't cover
  3. if the mask is larger, then it will broadcast

Expected behavior
This type of input should not be prohibited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant