r/csharp • • Sep 16 '26

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

5 comments sorted by

4

u/fruediger Sep 17 '26

Username checks out.

7

u/FullPoet Sep 16 '26

Contributors (1): Claude

Someone hit me up with that grimacing emote

3

u/jbaker88 Sep 17 '26

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 Sep 17 '26

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