Functions
Link copied to clipboard
Convert BooleanArray to bytes (1 byte per bool).
Link copied to clipboard
Convert DoubleArray to little-endian bytes.
Link copied to clipboard
Convert FloatArray to BFloat16 little-endian bytes. BFloat16 is simply the upper 16 bits of Float32.
Link copied to clipboard
Convert FloatArray to little-endian bytes.
Link copied to clipboard
Convert FloatArray to Float16 (half-precision) little-endian bytes.
Link copied to clipboard
Convert IntArray to little-endian bytes.
Link copied to clipboard
Convert LongArray to little-endian bytes.
Link copied to clipboard
Convert ShortArray to little-endian bytes.
Link copied to clipboard
Write a SafeTensors file to the given sink.