# tensorViz

> tensorViz visualizes the tensor shapes inside a PyTorch model by running one forward pass with saved example inputs. It is for ML engineers and coding agents who need to debug layer mismatches or understand model structure.

- Type: AI tool
- Page: https://completeaitraining.com/ai-tools/tensorviz/
- Published: 2026-11-12
- Updated: 2026-11-21
- Author: Jeroen Erne
- Jobs: IT and development
- Topics: Developer Tools, Coding, Open Source, Productivity
- Reading time: 2 min

### About tensorViz

tensorViz is a free, open-source (MIT) developer tool that runs a single forward pass on a PyTorch model and converts the results into an interactive graph. Each module and tensor shape becomes visible and searchable. The tool is designed to give coding agents like Claude Code, Codex, and Cursor access to measured runtime information, rather than relying solely on static source code.

### Review

When a coding agent edits a PyTorch model, it reads the source but doesn't see what actually moves through the layers at runtime. tensorViz addresses that gap by capturing one real forward pass and mapping every module and its tensor shapes onto a graph the agent can search. The project also includes a web-based Model Explorer with pre-generated graphs for over 560 published models, which requires no installation.

#### Key Features

- Runs a local forward pass on a user's nn.Module and generates an interactive graph showing all modules and measured tensor shapes.
- Lets coding agents search the graph for specific layers, operations, or parameters and read their runtime shapes.
- Clicking a graph node tells the agent exactly which module was selected, grounding code fixes in observed data.
- Model Explorer at tensorviz.dev hosts browsable graphs of 560+ models from recent papers, filterable by area, size, and release date.
- Graphs can be kept private or shared via link; they store structure and shapes but never code or weights.

#### Pricing and Value

tensorViz is free and open source under the MIT license. It runs locally without an account or API key. Sign-in is only required to join a discussion or share a graph.

#### Pros

- Grounds agent-driven model edits in actual runtime shapes instead of static code analysis.
- No account, API key, or paid tier needed - the tool runs entirely on the user's machine.
- Pre-built Model Explorer lets users browse and discuss graphs from hundreds of research models without writing any code.
- Agents can detect when a graph is partial and identify which modules were not captured.
- Open-source codebase allows inspection and modification.

#### Cons

- Forward passes run on CPU only; GPU execution and training runs are not yet covered.
- Very large models may produce only a partial graph, leaving some operations and shapes unknown.
- Teams that don't use PyTorch or don't rely on coding agents for model development won't find a direct use case.

tensorViz fits ML engineers who debug PyTorch models with the help of a coding agent and keep running into shape mismatches the agent can't resolve from code alone. It's less relevant for workflows that don't involve PyTorch or where model edits are handled entirely by hand. The Model Explorer also gives researchers a quick way to inspect architectures from recent papers without pulling and running code themselves.

---

This is the Markdown form of https://completeaitraining.com/ai-tools/tensorviz/. The whole site is mapped at https://completeaitraining.com/llms.txt.
