TorchLean API

NN.Proofs.Autograd.Model.Seeding

Fixed-state derivative seeds #

Input derivatives use zero directions for parameters, but a subsequent pullback differentiates with respect to the whole context. We therefore interpret the runtime seed as a jet on the full parameter-and-input space. This preserves parameter dependence without requiring a normed-space instance on the heterogeneous tensor pack or on the sealed model-state type.

Constant state followed by a seeded input is the full-context jet in input-only directions.

The base point still contains all state entries. Zero parameter directions mean that this jet takes input derivatives; they do not remove parameter dependence from the differentiated map.