Expand the architecture.
Start with the whole model. Expand a module to reveal its layers, operations, and skip connections. Collapse everything to return to the overview.
YOUR PYTORCH MODEL, MADE VISIBLE
A VS Code extensionTurn nested modules into a graph you can explore. Expand blocks into operations, follow tensor shapes, and jump from any layer to its Python source in VS Code.
Start with the whole model. Expand a module to reveal its layers, operations, and skip connections. Collapse everything to return to the overview.
Inspect the input and output of each operation from a captured run. See where a tensor changes shape, where execution fails, and what was never reached.
Select a layer to inspect its parameters, then choose View source. The graph stays connected to the declaration that defines it.
THE ACTUAL WORKFLOW
UNDERSTAND THE CHANGE, TOO
Compare Git revisions or open a GitHub pull request directly in the Canvas. Find the changed layers in the graph, then inspect the Python diff beside them.
Widen the Linear layers from 32 to 64, replace ReLU with GELU, and add LayerNorm. See old and new values on the layers themselves, with added and removed connections showing how the forward pass changes.
~ Modified+ Added− Removed
Open graph diffFor edits made from the graph, review the proposed Python in VS Code. You choose Apply or Discard.
A SHARED UNDERSTANDING
Give your coding agent the model’s structure. Give a teammate a graph they can explore. Keep the context attached to the architecture.
WITH YOUR CODING AGENT
Connect your existing agent through MCP to inspect captured operations and shapes, help with model setup, or propose a change for native review.
Connect your agent Your agent is optional. Core graph tools work without one.WITH YOUR TEAM
Export a portable snapshot with saved views and notes. A teammate can explore the architecture and join the discussion in a browser, without Python or VS Code.
An exchanged graph file; your source and weights stay separate.BRING YOUR OWN MODEL
Open your PyTorch project. Keep your editor, environment, and workflow.
BEFORE YOU START
Desktop VS Code 1.106 or newer and Python 3.10–3.14 with PyTorch and your model’s dependencies. Use an existing Conda or virtual environment; the separate tensorViz service needs Python 3.11+. See tested versions and limits ↗
Open as Graph resolves configuration and inputs, then captures one forward call in your selected Python environment. It describes that input and mode. Choose Inspect source only to browse without execution. The website’s examples and shared graph files are snapshots; they never run Python.
Yes. With desktop VS Code Remote SSH, install tensorViz on the SSH host and select Python there. Your files and model execution stay on the server; the Canvas appears on your desktop. WSL, dev containers, and Codespaces are outside the current support boundary.
The graph, input setup, and source-edit forms work without an agent or provider key. You can optionally connect an existing coding agent through MCP. That agent uses its own account and configuration.
Supported edits become a proposed Python change in a native VS Code diff. Apply changes the unsaved buffer; Discard writes nothing. Save and recapture to check the changed model. Reviewing or applying a change does not prove it runs correctly.
A .tensorviz.json snapshot contains the graph,
available capture details, layout, saved views, and notes.
Recipients explore it in the static viewer. It is an exchanged
file, with no live workspace sync; model source and weights are
not bundled.