TorchLean API

NN.Runtime.Autograd.Torch.LinkedSession.Public

Proof-Linked Session: Public Names #

Public re-exports (stable names for docs) #

@[reducible, inline]

Public alias for the proof-linked session state (internal definition re-export).

Instances For
    @[reducible, inline]

    Empty SessionIRState (no parameters/graph recorded yet).

    Instances For
      @[reducible, inline]

      Public alias for the proof-linked session object (internal definition re-export).

      Instances For
        @[reducible, inline]

        Create a new proof-linked session (records a graph + supports proved backprop hook).

        Instances For
          @[reducible, inline]
          abbrev Runtime.Autograd.Torch.SessionIR.backwardDenseAll {α : Type} (s : SessionIR α) [Add α] [Zero α] [DecidableEq Spec.Shape] {sh : Spec.Shape} (out : TensorRef α sh) (seed : Spec.Tensor α sh) :

          Compute dense gradients for all tracked refs w.r.t. an output tensor and a seed.

          This mirrors the "backward with custom seed" pattern in tensor AD systems.

          Instances For
            @[reducible, inline]

            Dense gradients for all tracked refs w.r.t. a scalar loss (seed is implicitly 1).

            Instances For
              @[reducible, inline]

              Extract the gradient tensor for a specific ref from a dense gradient array.

              Instances For

                Public proof hook: the runtime reverse-mode loop on the compiled tape equals proved IR backprop.

                This is a re-export of the internal theorem so downstream users can cite a stable name.