def onehot.rows
import bend-ml-autograd@0.1.1.0/main.bend as BendMlAutogradimport Base
254def onehot.rows(labels: List<&2, Nat>, +c: Nat) -> List<&2, List<&2, F32>>:
255 match labels:
256 case Nil{}:
257 Nil{}
258 case Con{k, t}:
259 onehot.row(c, k, 0n) <> onehot.rows(t, c)