def as_words
import bendtorch-core@0.1.0.0/src/autograd/loss.bend as Lossimport 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)