tensorViz

tensorViz

Directly visualize the structure of a PyTorch model from its source code.

tensorViz

Introduction

TensorViz addresses a very specific issue: helping people understand what a PyTorch model actually looks like.

In the past, in order to visualize the network structure, it was usually necessary to first export the model in ONNX format or use the `torch.export` function. However, exporting more complex models would often result in errors. TensorViz, on the other hand, allows users to directly open an `nn.Module` object from its Python source code and create an interactive diagram. Each edge of this diagram indicates the actual shape of the tensor involved; clicking on any node will take the user back to the corresponding source code section.

It is an editor extension that can be installed on both VS Code, Cursor, and VSCodium – all with just one command.

An additional plugin was provided for programming agents. This allows the AI to “see” the structure of the network and the shape of each layer before modifying it, thereby reducing the likelihood of errors due to mismatched dimensions.

The code is available on GitHub. It comes in handy when you need to read someone else’s model code, debug issues related to shape mismatches, or create schematic diagrams for research papers. However, those who only perform inference tasks without delving into the internal workings of the models won’t find it necessary.


Visits:121
Updated:2026-11-25
Follow "互助箩筐" on WeChat
Daily AI tools, tutorials and news
互助箩筐公众号二维码
Scan or long-press to follow
1 A domestic 3A masterpiece from Jimao
A domestic 3A masterpiece from Jimao
The highly popular first-person shooting game, which consists of just one 1.4MB file. No installation or internet connection is required – simply download the HTML file and double-click to start playing. The scenes, sound effects, and textures are generated in real-time using code. The game includes a complete set of mission procedures, realistic shooting feedback, and an atmospheric setting that captures the feel of a rainy night in a port area.
2 DevGPT
DevGPT
An AI assistant for developers that combines ChatGPT with more than 30 mini-tools.
3 Sophclaw
Sophclaw
Multi-model cloud computing AI digital employees
4 Zapyso
Zapyso
Voice dictation and meeting minutes functionality that can run offline on Mac devices.
5 Global Speed
Global Speed
Global Speed: A plugin that allows you to control the playback speed of HTML players. It is capable of adjusting the speed on nearly all streaming platforms, including YouTube, Netflix, Bilibili, Tencent Video, Baidu Netdisk, iQiyi, and more.
6 Geeksend foreign trade customer acquisition marketing
Geeksend foreign trade customer acquisition marketing
Geeksend is a foreign trade customer acquisition tool that provides full-link cross-border solutions. It has multi-channel customer acquisition tools and authoritative data support, empowering overseas companies to expand customers efficiently. The platform fully covers 95% of the core foreign trade markets and provides access to real-time business data from more than 200 countries.
7 Relax-Game-Toolkit
Relax-Game-Toolkit
A collection of pure-front-end, dependency-free mini-games – a single HTML file contains approximately 20 games and relaxation tools, such as the electronic wooden fish game, 2048, Snake, Minesweeper, and more. After downloading the index.html file (about 315KB), double-click it to play in any browser. These games are compatible with mobile touchscreens and support local storage of game saves.
8 Product Historical Price Inquiry
Product Historical Price Inquiry
The product historical price inquiry supports the historical price inquiries of e-commerce products such as Jingdong, Tmall, Taobao, No. 1 store, Suning E-commerce, Netease Koala, Dangdang.com, Amazon China, and Gome. Help you understand the law of commodity price reduction, let you buy at the cheapest time, this tool is surprisingly useful for Jingdong! Instructions for use
9 QuickCut
QuickCut
Miaojian is an official video-editing tool launched by WeChat, designed specifically for WeChat Channels and Moments. It is simple to use and focuses on “AI-powered editing” and “one-tap video creation,” lowering the barrier to video creation. Of course, in terms of feature richness...
1 A domestic 3A masterpiece from Jimao
A domestic 3A masterpiece from Jimao
The highly popular first-person shooting game, which consists of just one 1.4MB file. No installation or internet connection is required – simply download the HTML file and double-click to start playing. The scenes, sound effects, and textures are generated in real-time using code. The game includes a complete set of mission procedures, realistic shooting feedback, and an atmospheric setting that captures the feel of a rainy night in a port area.
2 Relax-Game-Toolkit
Relax-Game-Toolkit
A collection of pure-front-end, dependency-free mini-games – a single HTML file contains approximately 20 games and relaxation tools, such as the electronic wooden fish game, 2048, Snake, Minesweeper, and more. After downloading the index.html file (about 315KB), double-click it to play in any browser. These games are compatible with mobile touchscreens and support local storage of game saves.
3 Black Rock Reading
Black Rock Reading
Original online novel platform
4 Digital Book Index
Digital Book Index
Digital Book Indexing Website
5 Doop
Doop
The unlimited design canvas enabled by AI collaboration
6 Global Speed
Global Speed
Global Speed: A plugin that allows you to control the playback speed of HTML players. It is capable of adjusting the speed on nearly all streaming platforms, including YouTube, Netflix, Bilibili, Tencent Video, Baidu Netdisk, iQiyi, and more.
7 Yuanbao Search
Yuanbao Search
AI web search developed by Tencent
8 OpenStax
OpenStax
Free Open University Textbook Platform
9 Product Historical Price Inquiry
Product Historical Price Inquiry
The product historical price inquiry supports the historical price inquiries of e-commerce products such as Jingdong, Tmall, Taobao, No. 1 store, Suning E-commerce, Netease Koala, Dangdang.com, Amazon China, and Gome. Help you understand the law of commodity price reduction, let you buy at the cheapest time, this tool is surprisingly useful for Jingdong! Instructions for use