def relu.l
import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensorimport Base
64def relu.l(xs: List<&2, F32>) -> List<&2, F32>:
65 match xs:
66 case Nil{}:
67 Nil{}
68 case Con{+h, t}:
69 F32.max(h, 0.0) <> relu.l(t)
import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensorimport Base
64def relu.l(xs: List<&2, F32>) -> List<&2, F32>:
65 match xs:
66 case Nil{}:
67 Nil{}
68 case Con{+h, t}:
69 F32.max(h, 0.0) <> relu.l(t)