def amax_l
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
326def amax_l(xs: List<&2, F32>, +acc: F32) -> F32:
327 match xs:
328 case Nil{}:
329 acc
330 case Con{+h, t}:
331 amax_l(t, F32.max(acc, F32.abs(h)))
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
326def amax_l(xs: List<&2, F32>, +acc: F32) -> F32:
327 match xs:
328 case Nil{}:
329 acc
330 case Con{+h, t}:
331 amax_l(t, F32.max(acc, F32.abs(h)))