-
Notifications
You must be signed in to change notification settings - Fork 95
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
Two (small) issues with display of tensor #500
Comments
Unfortunately 4D display on a 2D screen is a bit hard. Ideally 4D display looks like that #5 (comment) I try to reverse engineer the Haskell code of that library but got lost in Monads :/. Regarding nimib, you might want to have a chat with @haxscramper as he also wanted to help tackle that part (and many others tooling issues like nimble dependencies resolution), https://github.com/haxscramper/haxdoc |
Since #509 (and some fixes of it after) the first example now gives: import arraymancer, sequtils
echo toSeq(1..24).toTensor().reshape(2,3,4)
and the second: import arraymancer, sequtils
echo toSeq(1..16).toTensor().reshape(2,2,2,2)
I'll close the issue for now. If I'm missing something that is still broken, feel free to reopen. |
example (playground):
output:
The two issues are:
"
after tensor shape|
in first columnsFirst one is a trivial fix (source); the second one might be a little be more involved (source), but I could try to produce a PR with a fix for both.
Also, not sure what should be the expected display of a 4d tensor, an example:
output:
I noticed these two issues while writing a remake of the Tutorial using a library I am developing: nimib.
I also noticed this very interesting issue #488 which is relevant to documentation and for which maybe nimib in the future (I am close to first release of 0.1) might be able to help with.
The text was updated successfully, but these errors were encountered: