TorchLean API

NN.Widgets.Runtime.Autograd

Autograd #

Autograd widgets (tapes + gradients).

This module provides infoview panels for TorchLean’s eager-mode autograd tape:

Main definitions #

Render a tape as an HTML panel (nodes + DOT).

Instances For

    Render gradients from a scalar output id (like loss.backward()).

    Instances For

      Reverse-Pass Trace #

      #tape_grads_view answers "which nodes received a gradient?".

      When you need to understand why a gradient was produced (or why it is missing), it is useful to see the reverse traversal itself:

      This viewer runs reverse-mode, then recomputes each visited node's local VJP from its accumulated cotangent for display in reverse id order. It does not record intermediate accumulator updates.

      Show final cotangents and recomputed local VJPs from scalar output node outId. This is not a recording of intermediate gradient accumulation.

      Instances For

        Commands #