pub fn cpu_from_data(
dtype: GgmlDType,
data: Cow<'_, [u8]>,
) -> Result<Box<dyn QuantizedType>>Expand description
Builds CPU quantized storage from raw block bytes. The bytes are copied,
so data may be owned or borrowed and need not be aligned for dtype.
Returns Err if data is not a whole number of blocks.