Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
quantize_dequantize_roundtrip
Function · 0.70
asymmetric_l2_close_to_exact
Function · 0.70
batch_quantize
Function · 0.70
Calls
1
collect
Method · 0.80
Tested by
3
quantize_dequantize_roundtrip
Function · 0.56
asymmetric_l2_close_to_exact
Function · 0.56
batch_quantize
Function · 0.56