Tensor to Numpy style string #491
Replies: 4 comments 5 replies
-
@dayo05 -- I think it would be valuable to also add some of the arguments from the ToString() method, especially the format and cultureInfo args. public string ToString(bool withData string fltFormat = "g5", int width = 100, CultureInfo? cultureInfo = null) Also, wouldn't you want to format things depending on type? Your code looks like assumes everything is a 32-bit float. If it's useful, we could make 'Tensor.PrintValue' public. |
Beta Was this translation helpful? Give feedback.
-
Personally, I find NumPy tensor strings completely unintelligible for anything beyond 2 dimensions, but I realize that it's very subjective. It's cool to see you hack this up -- it could go in the In that case, |
Beta Was this translation helpful? Give feedback.
-
The numpy style of tensor strings has been integrated a while ago. |
Beta Was this translation helpful? Give feedback.
-
I think who learns ML will friendly with python, numpy. But, torchsharp uses julia's method to convert tensor to string.
So I made Tensor to numpy string.
I don't think this is best way but this is able to be one of the method.
Beta Was this translation helpful? Give feedback.
All reactions