def as_words

bendtorch-core@0.1.0.0 · src/autograd/loss.bend:271

import bendtorch-core@0.1.0.0/src/autograd/loss.bend as Loss
import Base

271def as_words(+targets: List<&2, U32>) -> List<&2, F32>:
272  match targets:
273    case Nil{}:
274      Nil{}
275    case Con{+target, +rest}:
276      U32.to_f32(target) <> as_words(rest)

Uses (4)

Used by (1)