Tip Of AI
Discover what you can do with AI
tensorViz is a PyTorch model visualizer that opens an nn.Module from Python source and presents it as an interactive graph. It works without torch export, TorchScript, or ONNX conversion, using an ordinary eager forward call to capture model behavior. The tool records tensor shapes through forward module hooks and TorchDispatchMode, then connects graph nodes to the original Python source. Key features include expandable architecture graphs, measured tensor shapes, source navigation, code focus for nodes expressions functions and classes, graph review between Python revisions, and visual comparison of layers and connections. Users can inspect source without running a model, or capture one forward pass in their own Python environment. tensorViz also supports Hugging Face model visualization, saved graph files, downloadable Python source, browser based published graph exploration, and shape mismatch investigation using recorded evidence. The tool integrates with VS Code, Cursor, and VSCodium through an editor extension. A coding agent plugin is available for Claude Code, Codex, and Cursor, allowing agents to inspect models and propose code edits for human review. Requirements include Python 3.10 or newer for models, Python 3.11 or newer for the TensorViz service, and supported macOS or Linux platforms. The source repository is public and licensed under MIT. Models run locally in the users chosen environment, and no AI provider key is required for core graph features.