Is there a way to pretty print a tensor ? #43
-
Hello, For the sample input
Is there a function available in the library to pretty print the tensor ? For nested tensors, it might be helpful to just print the values. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi Sreeram, sorry I missed this question of yours. When you load malt, it should automatically adjust the printing ports so that the output of tensors is properly printed. Are you printing to another port? See, for example, the output that I get:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am seeing that this error occurs only when using malt/learner and after using a extended function. For e.g., below is a minimal example to replicate the issue.
Below works fine.
|
Beta Was this translation helpful? Give feedback.
-
I will push a fix for this, but in the meantime, here's a suggested workaround:
This should give you the following:
|
Beta Was this translation helpful? Give feedback.
I will push a fix for this, but in the meantime, here's a suggested workaround:
This should give you the following: