def onehot.rows

bend-ml-autograd@0.1.1.0 · main.bend:254

import bend-ml-autograd@0.1.1.0/main.bend as BendMlAutograd
import 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)

Uses (4)

Used by (2)