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

Function encode_produces_m_bytes

nodedb-codec/src/vector_quant/opq.rs:375–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373
374 #[test]
375 fn encode_produces_m_bytes() {
376 let codec = train_tiny();
377 let vecs = tiny_dataset();
378 for v in &vecs {
379 let q = codec.encode(v);
380 assert_eq!(q.codes.len(), codec.m);
381 }
382 }
383
384 #[test]
385 fn distance_is_non_negative() {

Callers

nothing calls this directly

Calls 3

train_tinyFunction · 0.85
tiny_datasetFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected