test/f16_all.bend relies on unsafe/foreign
raw source on the hub · import bend-safetensors-reader@0.1.0.0/test/f16_all.bend as F16_all
Prints V.f16(h) for every 16-bit h, one a line; check_f16_all.py compares them with NumPy's float16 -> float32.
2 imports
import Base import ../widen.bend as V
Unsafe
unsafe go source · line 6 · raw
@done:Bool -> @+h:U32 -> IO(Unit)
unsafe main source · line 16 · raw
IO(Unit)