Is there interest to make TorchSharp for user friendly with e.g. .NET Interactive?
See original GitHub issueTorch.SetSeed(1234);
var tensor = Float32Tensor.rand(new long[] { 4, 4 });
Console.Write(tensor)
Currently, there is no friendly print function when using TorchSharp in e.g. .NET Interactive , or I could have miss it?
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Is there interest to make TorchSharp for user friendly with ...
Currently, there is no friendly print function when using TorchSharp in e.g. .NET Interactive , or I could have miss it?
Read more >TorchSharp & Tensor Programming - YouTube
In this week's community standup Don Syme talks about TorchSharp, a set of . NET bindings for the PyTorch engine, and tensor programming....
Read more >How to train a neural network model from scratch using C#. ...
Extend integration of TorchSharp within ML.NET especially for deep learning use cases. If your interest is deep learning in .NET, Torchsharp is ...
Read more >Does anyone actually use ML.NET? : r/dotnet
I work in engineering and we make a LOB application for pressure vessels calculation. I'm interested, if you like to share, in what...
Read more >Text Classification in C# with ML.NET 2.0
Let's take a look at how ML.NET 2.0's new Text Transformer features can be used to perform multi-class classification and map utterances to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m proposing a second ToString() overload defined on TorchTensor:
The boolean is there to distinguish from the overriden ToString(), and is not necessary if the method is called something else.
One could also define it as:
to hide the overridden method.
Anyway, it would produce output like this:
In this case, by passing in “0.0000000” as the format string.
The width parameter is there to prevent the method from making up extremely long lines. Instead, when the width is reached, each row ends with ‘…’
Working on a better ToString() would be interesting. I’m personally partial to how Julia prints tensors with more than two dimensions:
I like that the indices are printed (Julia is a column-major language, so the indices would be in the first dimensions rather than the last in .NET.)
@dsyme – you probably have thoughts on this topic.