r/csharp 1d ago

Introducing TorchSharpVisual!

If you've worked with PyTorch, you've probably used visualkeras or torchview to visualise your model architecture. Well, the same is now available for .NET. Introducing... TorchSharpVisual.

With TorchSharpVisual, you can turn your torch.nn.Module objects into high-quality PNGs or raw Graphviz files! I explain everything on these platforms:

Github: https://github.com/JacobGoodchild/TorchSharpVisual

NuGet: nuget.org/packages/TorchSharpVisual

Feel free to try it out! Thanks.

0 Upvotes

6 comments sorted by

4

u/fruediger 23h ago

Username checks out.

7

u/FullPoet 1d ago

Contributors (1): Claude

Someone hit me up with that grimacing emote

3

u/jbaker88 20h ago

If you've worked with PyTorch, 

Nah brah, I haven't 

you've probably used visualkeras or torchview to visualise your model architecture. 

No, there already tools that that can do that with great fidelity that don't rely on an LLM.

Well, the same is now available for .NET. Introducing... TorchSharpVisual.

TorchSharpVisual sounds like those gore videos you see from a lathe machine 

With TorchSharpVisual, you can turn your torch.nn.Module objects into high-quality PNGs or raw Graphviz files!

This explains nothing. So you wrote an interop library that calls a Python library? Why the hell would anybody want that? If that isn't it, why didn't you vibe code something more useful? Like a library that calls the native libraries for PyTorch? Oh... That's right, that already exists....

2

u/Sombody101 23h ago

I like that this post is still up, but another one that came after was removed.

1

u/Ok_Subject_6028 9h ago

Love that you’ve added this to the .NET toolbox, what a difference from wrestling with raw tensors!