AI TOOL / #11835
tensorViz
从源码直接画出PyTorch模型结构
Introduction
tensorViz 解决一个很具体的问题:看懂一个 PyTorch 模型到底长什么样。
以往要可视化网络结构,通常得先把模型导出成 ONNX 或者走 torch.export,稍微复杂一点的模型导出就报错。tensorViz 直接从 Python 源码打开 nn.Module,画成一张可交互的图,每条边上标的是实际量出来的张量形状,点节点能跳回对应的源码。
它是编辑器扩展,VS Code、Cursor 和 VSCodium 都能装,一条命令搞定。
另外提供了一个给编程智能体用的插件。让 AI 改模型结构时,它可以先「看」到网络的图和各层形状,少犯维度对不上的错。
代码放在 GitHub 上。读别人的模型代码、调试形状不匹配、给论文画结构图的时候都用得着。只做推理不碰模型内部的人不需要它。
Related
Impossible Spaces: The Realm of the Impossible
The mesmerizing experience of the “impossible space”; open-source technology.
Golden Hours at English Bay in Vancouver
A panoramic view of the evening sky over English Bay in Vancouver, created entirely using JavaScript.
Asteroid Belt Pressure Test
Approximately 20,000 asteroids orbit around it, continuously shedding rocks until the device’s frame rate drops to 30 frames per second.
ByteVoice
Use voice commands to control the programming agent.
Fenbi
A mainstream civil service exam platform with aptitude question banks, essay review, structured courses and periodic mock exams.
Gongkao Leida
A public-sector job matching and recruitment notice aggregator filterable by major, region and education.