def argmax
import bend-ml-llama@0.2.1.0/main.bend as BendMlLlamaimport Base
1104def argmax(xs: List<&2, F32>) -> AM:
1105 match xs:
1106 case Nil{}:
1107 AM{0n, 0.0}
1108 case Con{+h, +t}:
1109 argmax.go(t, gt_head(t, h), 1n, 0n, h)
Uses (5)
Used by (0)
No other definition uses this definition.