def l2_finish_go

mlbend-preprocess@0.1.0.0 · main.bend:143

import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess
import Base

143# The row, divided, cell by cell.
144def l2_finish_go(acc: List<&2, F32>, +norm: F32, +out: List<&2, F32>) -> List<&2, F32>:
145  match acc:
146    case Nil{}:
147      out
148    case Con{h, t}:
149      l2_finish_go(t, norm, List.append(&2, F32, out, Con{(h / F32.max(norm, 0.00000001) : F32), Nil{}}))

Uses (5)

Used by (1)