You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cstr (or ToString(TensorStringStyle.CSharp)) on a 0d tensor (scalar) will return an empty string, due to the line 6575 in Tensor.cs.
Meanwhile I also found the line 6582, which also tries to check t.Dimensions == 0 and print the scalar value, so I think the current behavior is not expected.
Thank you for reporting! This seems to be affecting formatting strings as C# and Numpy, but not Julia. While waiting for the next release, you can set the default format to 'Julia' and it should work.
Activity
NiklasGustafsson commentedon Mar 1, 2024
Thank you for reporting! This seems to be affecting formatting strings as C# and Numpy, but not Julia. While waiting for the next release, you can set the default format to 'Julia' and it should work.
NiklasGustafsson commentedon Mar 5, 2024
Fixed in v0.102.1.