For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python function
float32_array_to_buffer
float32_array_to_buffer()β
max.driver.float32_array_to_buffer(array, *, dtype, device)
Creates a Buffer of dtype on device from float32 data.
Converts on the host, so no cast graph is compiled. For
DType.bfloat16, rounds with float32_to_bfloat16_as_uint16();
for other dtypes, casts with NumPy.