TorchLean API

NN.Runtime.Autograd.IRExec.Lowering.Common

Shared Checked-Lowering Context #

Common dependent context and result types used by the operation-family lowering modules.

Every lowering branch validates parents and shapes once, while the graph is being lowered, and then builds a pure closure whose result type is the node's declared output shape. The closures apply typed specification operators directly to typed parent values; they never call the dynamic IR evaluator and never unwrap a runtime result, so the lowered graph contains no panic!.

Data shared by checked lowerers for one IR node.

Instances For
    @[reducible, inline]

    The checked executable node produced for a lowering context.

    Instances For