tensorViz
Let your coding agent see inside your PyTorch model
Working when we checked on .
What is tensorViz?
tensorViz is a PyTorch model visualizer that opens an nn.Module from Python source as an interactive graph with measured tensor shapes, without torch.export or ONNX conversion. It is built for machine learning developers working in VS Code, Cursor or VSCodium, and for coding agents like Claude Code and Codex. It captures one forward call to record real tensor shapes, links graph layers back to their Python source, and compares two revisions layer by layer with code diffs beside the graph. It also supports opening supported Hugging Face models, such as SmolLM2-135M, as graphs. A coding-agent plugin lets agents propose model edits that the developer reviews and accepts or discards.
tensorViz pricing
Pricing model: Freemium
tensorViz pros
- Visualizes PyTorch models as interactive graphs with measured tensor shapes
- No torch.export or ONNX conversion required
- Works in VS Code, Cursor and VSCodium via a marketplace extension
- Coding-agent plugin supports Claude Code, Codex and Cursor with reviewed proposed edits
- Graph review compares layers between two Python revisions with code diffs
- Brings supported Hugging Face models, e.g. SmolLM2-135M, into the editor as graphs
tensorViz cons
- Requires VS Code 1.106 or newer and Python 3.10+ (service requires 3.11+)
- Coding-agent plugin is in preview, limited to macOS and glibc Linux (x64/ARM64); Windows support is limited
- Model capture requires matching CPython 3.12
- No pricing or plan information is shown on the site
Frequently asked questions about tensorViz
What does tensorViz do?
It is a PyTorch model visualizer that opens an nn.Module from Python source as an interactive graph with measured tensor shapes, without torch.export or ONNX conversion.
Which editors does tensorViz support?
The editor extension works in VS Code, Cursor and VSCodium, installed via the command 'code --install-extension tensorviz.tensorviz-vscode'. VS Code 1.106 or newer is required.
Can coding agents use tensorViz?
Yes. A plugin for Claude Code, Codex and Cursor lets the agent inspect a model graph and propose edits via tools like get_graph, inspect_nodes and propose_edit. The developer reviews the graph and Python diff, then accepts or discards the edit.
Can it visualize Hugging Face models?
Yes. Supported Hugging Face models can be brought into the editor, capturing a forward pass and expanding modules to follow tensors through the architecture, such as SmolLM2-135M.
How does tensorViz measure tensor shapes?
It runs one forward call of the model with the user's inputs and records the actual tensor shapes at each layer, saving the result as a graph with provenance evidence.
Who is tensorViz for?
It is for machine learning developers and coding agents working on PyTorch models in editors like VS Code, Cursor, VSCodium, Claude Code and Codex.
Can I compare two model versions?
Yes. Graph review compares layers and connections between two Python revisions, with the code diff shown beside the graph, plus Before, Diff, After and Python source views.
Can it help debug shape mismatch errors?
Yes. It shows recorded evidence of shape mismatches, such as a head declaring 64 input features while the residual block delivers 128, pinpointing the failing line and the one-number fix.
Does tensorViz run my model in the browser?
No. Graphs on the site are saved records from captured forward calls; nothing runs on the page itself.
What are the system requirements?
VS Code 1.106 or newer, model Python 3.10+ and TensorViz service Python 3.11+. The agent plugin preview covers macOS and glibc Linux (x64/ARM64) with limited Windows support, and model capture requires matching CPython 3.12.