TorchLean API

NN.Runtime.Autograd.IRExec.Lowering.Reductions

Reduction IR Lowering #

Checked lowering for broadcasts, axis reductions, full reductions, and scalar losses.

Each operation has its own small lower* definition. lowerReduction only dispatches on the operation kind, and the lowerReduction_* equation lemmas let correctness proofs reduce a dispatch to the branch they care about without unfolding the whole dispatcher.

Checked lowering for .broadcastTo s₁ s₂.

Instances For

    Checked lowering for .reduceSum axis.

    Instances For

      Checked lowering for .reduceMean axis.

      Instances For

        Checked lowering for .sum.

        Instances For

          Checked lowering for .mseLoss.

          Instances For

            Checked lowering for broadcasts, axis reductions, full reductions, and scalar losses.

            Instances For
              @[simp]

              Dispatch equation for .broadcastTo s₁ s₂.

              @[simp]

              Dispatch equation for .reduceSum axis.

              @[simp]

              Dispatch equation for .reduceMean axis.