API reference
latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.utils.viz API
Functions 1
make_dot
functionFull reference ↗- tensorplay.utils.viz.make_dot(var, params=None)[source]
Render the computation graph recorded for
var.Leaf tensors with
requires_grad=Trueare drawn light blue and are labeled by the name passed inparams; the output tensor is light green; recorded operations are white and labeled by operation name.- Parameters:
var – output tensor whose recorded chain should be drawn.
params – dict mapping a name to a leaf tensor, used for labeling.
Returns a renderable object: a
graphviz.Digraphwhen the graphviz package is installed, otherwise a matplotlib wrapper with the samerender(filename, format="png")call from the networkx fallback.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

