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

Pretty printing larger-than-printable Tensor hangs the program #634

Open
arkanoid87 opened this issue Mar 12, 2024 · 0 comments
Open

Pretty printing larger-than-printable Tensor hangs the program #634

arkanoid87 opened this issue Mar 12, 2024 · 0 comments

Comments

@arkanoid87
Copy link

import arraymancer

echo "echo start"
echo newTensor[float](1000, 1000) # < WARN: takes lots of time then floods the terminal
echo "echo end"

it would be nice if pretty printing would actually be so considerate to know when contents is not reasonably printable and return sliced content like numpy and other multi-dimensional array libs do

equivalent numpy output

import numpy as np
arr = np.zeros((1000,1000))
print(arr)
array([[0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       ...,
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.]])

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

No branches or pull requests

1 participant