MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / make_vectors

Function make_vectors

nodedb-vector/src/quantize/sq8.rs:277–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 }
276
277 fn make_vectors() -> Vec<Vec<f32>> {
278 (0..100)
279 .map(|i| vec![i as f32 * 0.1, (i as f32).sin(), (i as f32).cos()])
280 .collect()
281 }
282
283 #[test]
284 fn quantize_dequantize_roundtrip() {

Callers 3

batch_quantizeFunction · 0.70

Calls 1

collectMethod · 0.80

Tested by 3

batch_quantizeFunction · 0.56