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

[Bug]: keepdim not working for any/all when axis=None #999

Closed
neosunhan opened this issue Jul 18, 2022 · 0 comments · Fixed by #1000
Closed

[Bug]: keepdim not working for any/all when axis=None #999

neosunhan opened this issue Jul 18, 2022 · 0 comments · Fixed by #1000
Assignees
Labels
bug Something isn't working GSoC

Comments

@neosunhan
Copy link
Collaborator

neosunhan commented Jul 18, 2022

What happened?

axis=None in any/all performs a reduction across all dimensions of the array. However, keepdim=True does not preserve shape in this case.

Code snippet triggering the error

>>> import heat as ht
>>> a = ht.ones((1,1))
>>> a.shape
(1, 1)
>>> b = ht.all(a, keepdim=True)
>>> b.shape
(1,)

Version

main (development branch)

Python version

3.10

PyTorch version

1.11

@neosunhan neosunhan self-assigned this Jul 18, 2022
@neosunhan neosunhan added bug Something isn't working GSoC labels Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GSoC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant