def lf_embb
import bendtorch-gpu@1.3.0.0/main.bend as BendtorchGpuimport Base
1312# x1 = dy, x2 = the ids; the gradient g, in place
1313def lf_embb(+t: U32, +l: U32, +e: EEM, x1: Array<F32>, x2: Array<F32>, x3: Array<F32>, x4: Array<F32>, g: Array<F32>) -> Array<F32>:
1314 match e:
1315 case EEM{+k, +d}: eb_if(U32.is_lt(t, d), t, k, d, x1, x2, g)