Dtype.BF16.to_f32: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/dtype.bend as Dtype Lines 54-56 of bendtorch@1.3.0.0/dtype.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/dtype.bend&start_line=54&end_line=56 import Base # BF16 -> F32 is exact: the 16 bits become the top half def BF16.to_f32(+h: U32) -> F32: u2f(U32.shln((h .&. 65535 : U32), 16n)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=u2f