validateQuantizedBytes
fun validateQuantizedBytes(bytes: ByteArray, elementCount: ULong, quantType: GGMLQuantizationType)(source)
Validate that a byte array has the correct size for a given quantized tensor.
Parameters
bytes
Raw byte data
elementCount
Number of logical elements
quantType
The quantization format
Throws
if the size doesn't match