BendMlLlama.fill_bf16: def of bend-ml-llama@0.2.1.0 Import: import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama Lines 1484-1491 of bend-ml-llama@0.2.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-llama@0.2.1.0/main.bend&start_line=1484&end_line=1491 import Base # writes the BF16 numbers held in bs (2 bytes each), widened to F32, at index i, without building a list of F32 # first def fill_bf16(bs: List<&2, U32>, +i: U32, a: Array) -> Array: match bs: case Con{+b0, Con{+b1, t}}: fill_bf16(t, (i + 1 : U32), Array.set(F32, a, i, bf16_le(b0, b1))) case _: a Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-ml-llama@0.2.1.0/main.bend&name=bf16_le