def relu_l

bend-ml-tensor-array@0.1.19.0 · main.bend:271

import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArray
import Base

271def relu_l(nleft: Nat, +t: U32, rc: Array<F32> & F32) -> Array<F32>:
272  match nleft rc:
273    case 0n Tuple{c, v}:
274      c
275    case 1n+p Tuple{c, +v}:
276      relu_l(p, (t + 1 : U32), Array.get(F32, Array.set(F32, c, t, F32.max(v, 0.0)), (t + 1 : U32)))

Uses (10)

Used by (1)