Discover and explore top open-source AI tools and projects—updated daily.
willyfhPyTorch neural network architecture visualization tool
Top 87.4% on SourcePulse
Summary
VisualTorch is a Python library designed to visualize PyTorch neural network architectures, supporting flow, graph, and LeNet styles. It aids researchers and developers in understanding and debugging complex model structures by providing clear graphical representations of model topology.
How It Works
The library employs a tracing-based approach, executing a forward pass with a dummy input to dynamically build the network diagram. This method allows for visualization of both PyTorch Sequential and custom models, leveraging a unified tracing backend and architecture-handling logic that extends beyond its initial inspirations.
Quick Start & Requirements
pip install visualtorch or pip install "visualtorch[mcp]" for MCP integration.visualtorch.readthedocs.io, including usage examples and API references.Highlighted Details
Maintenance & Community
Contributions are welcomed. Release methodology is detailed in GOVERNANCE.md, with past releases available on PyPI. No explicit community channels like Discord or Slack are listed.
Licensing & Compatibility
Distributed under the MIT License, ensuring broad compatibility for commercial use and integration into closed-source projects. The project builds upon other MIT-licensed libraries.
Limitations & Caveats
As a tracing-based tool, VisualTorch cannot fully represent models with data-dependent control flow, as only the executed branch from the dummy input is visualized. Additionally, for layers returning multiple tensors, the primary node representation is based on the first output, though all output shapes can be displayed.
1 day ago
Inactive
google-deepmind
lutzroeder