def cfg_stop

bendtorch@1.3.0.0 · main.bend:534

import bendtorch@1.3.0.0/main.bend as Bendtorch
import Base

534def cfg_stop(ok: Bool) -> IO(Unit):
535  match ok:
536    case True{}:
537      IO.pure(Unit, Unit{})
538    case False{}:
539      IO.die(Unit, 1, "CAdam/CAdamW: c1, c2 do not match b1, b2 (c1 = 1 - b1, c2 = 1 - b2, e.g. 0.9, 0.999 with 0.1, 0.001)")

Uses (5)

Used by (1)