A high-performance inference engine for AI models
quant_matmul_test fix
Aleksei Savind740045edb10
diff --git a/crates/uzu/tests/quant_matmul_test.rs b/crates/uzu/tests/quant_matmul_test.rsindex 528045382..1f1747456 100644--- a/crates/uzu/tests/quant_matmul_test.rs+++ b/crates/uzu/tests/quant_matmul_test.rs@@ -69,9 +69,9 @@ fn create_test_weights(for row in 0..output_dim {for _col in 0..input_dim {let v = if bits == 4 {- (row as u8 + 1) & 0x0F+ ((row + 1) & 0x0F) as u8} else {- row as u8 + 1+ ((row + 1) & 0xFF) as u8};weights_quant.push(v);}@@ -81,9 +81,9 @@ fn create_test_weights(for _row in 0..input_dim {for col in 0..output_dim {let v = if bits == 4 {- (col as u8 + 1) & 0x0F+ ((col + 1) & 0x0F) as u8} else {- col as u8 // Allow 0..255 range+ (col & 0xFF) as u8 // Allow 0..255 range};weights_quant.push(v);}