BendtorchGpu.gdx_2: def of bendtorch-gpu@1.3.0.0 Import: import bendtorch-gpu@1.3.0.0/main.bend as BendtorchGpu Lines 357-361 of bendtorch-gpu@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-gpu@1.3.0.0/main.bend&start_line=357&end_line=361 import Base import bend-ml-tensor-gpu@0.1.5.0/main.bend as TG import bendtorch@1.3.0.0/main.bend as T def gdx_2(+d: Nat, +off: U32, +df: F32, +eps: F32, +t: U32, dy: Array, g: Array, dx: Array, rr: Array, q: T.AS) -> TG.O2: match q: case T.AS{x, +s}: +r = T.rms_inv(s, df, eps) gdx_3(d, off, df, r, t, dx, rr, T.rmsb_dot(Nat.sub(d, 1n), 0, off, r, 0.0, Array.get(F32, x, off), Array.get(F32, dy, off), Array.get(F32, g, 0))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-gpu@0.1.5.1/main.bend&name=O2 https://jend.leeeet.dev/definition.txt?path=bendtorch-gpu@1.3.0.0/main.bend&name=gdx_3 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=AS https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=rms_inv https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=rmsb_dot