TorchLean API

NN.Runtime.Autograd.Engine.Cuda.Shape

axisMap generation #

Shift every nonzero entry of a partial axis map up by one, making room for a leading axis.

Instances For

    Generate the CUDA axisMap for right-aligned broadcasting.

    The proof establishes compatibility, but the map itself is determined solely by the two ranks: missing leading axes map to zero, and every remaining output axis maps to its aligned input axis.

    Instances For

      CUDA axis map that restores the axis removed by shapeAfterSum.

      Instances For