dot

command
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Command dot prints the computation graph of z = x + y in Graphviz DOT format — tensai's equivalent of Gorgonia's encoding/dot example. Render it with the graphviz dot tool:

go run ./_example/dot | dot -Tsvg > graph.svg
go run ./_example/dot | dot -Tpng > graph.png

ToDot works on any node, so the same call draws a full model: build a loss with the autograd API and print loss.ToDot() instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL