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

print binary operations one element nested arrays #866

Closed
mtar opened this issue Sep 14, 2021 · 0 comments · Fixed by #868
Closed

print binary operations one element nested arrays #866

mtar opened this issue Sep 14, 2021 · 0 comments · Fixed by #868
Labels
bug Something isn't working redistribution Related to distributed tensors

Comments

@mtar
Copy link
Collaborator

mtar commented Sep 14, 2021

Description
A clear and concise description of the bug and the associated functionality.

Printing the result of an arithmetic operations does not work with DNDarrays when at least one operand contains a nested array.
The problem seems to be the resulting array.

To Reproduce
Steps to reproduce the behavior:

  1. Which module/class/function is affected?
    print, _ operations.__binary_op
  2. What are the circumstances under which the bug appears?
    binary_op on distributed + nested array with one element and print
  3. What is the exact error message / erroneous behavior?
    RecursionError: maximum recursion depth exceeded while calling a Python object

Expected behavior
A clear and concise description of what you expected to happen.
Print result

Illustrative
If applicable, add screenshots or minimal examples to help explain your problem.

a = ht.array([[2]], split=0) + ht.array([[1]], split=0)
print(a) # Error
print(a.larray, a.shape) # [1,0]<stdout>:tensor([[3]]) (1, 1); [1,1]<stdout>:tensor([[3]]) (1, 1)

Version Info
Which version are you using?
master 45d4a00
Additional comments
Any other comments here.

@mtar mtar added bug Something isn't working redistribution Related to distributed tensors labels Sep 14, 2021
@mtar mtar changed the title operations one element nested arrays print after operations one element nested arrays Sep 15, 2021
@mtar mtar changed the title print after operations one element nested arrays print binary operations one element nested arrays Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working redistribution Related to distributed tensors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant