def bf16_of_bits

bendtorch@1.3.0.0 · dtype.bend:48

import bendtorch@1.3.0.0/dtype.bend as Dtype
import Base

48def bf16_of_bits(+u: U32) -> U32:
49  pick_u(U32.is_gt((u .&. 2147483647 : U32), 2139095040), 65535, bf16_rne(u))

Uses (5)

Used by (1)