def b1_ij_f

bendtorch-gpu@1.3.0.0 · main.bend:1047

import bendtorch-gpu@1.3.0.0/main.bend as BendtorchGpu
import Base

1047# backward 1, dense: the score cell as forward 1, and G's dP = dO's row · v's row, at the dense offsets
1048def b1_ij_f(+a: IJ, +t32: U32, +h: U32, +g: U32, +hd: Nat, +hd32: U32, +w: U32, +sc: F32, +tr: U32, s: S6) -> S6:
1049  match a:
1050    case IJ{+ok, +bh, +i, +j}: b1_if(ok, (toff_f(bh, i, t32, tr) + j : U32), ((((U32.div(bh, h) * t32 : U32) + i : U32) * w : U32) + (U32.mod(bh, h) * hd32 : U32) : U32), (((U32.div(bh, g) * hd32 : U32) * t32 : U32) + j : U32), hd, t32, sc, s)

Uses (11)

Used by (1)