pub fn validate_f32_buffer(
weight_name: &str,
actual_elements: usize,
rows: usize,
cols: usize,
) -> Result<(), WeightBufferError>Expand description
Validate that an F32 weight buffer has correct element count.
For unquantized (F32) weights, the buffer must have exactly rows * cols * 4 bytes
(or rows * cols elements).
§Errors
Returns WeightBufferError if the element count doesn’t match.