MCPcopy Create free account
hub / github.com/antirez/ds4 / table_get

Function table_get

ds4.c:21743–21758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21741 uint32_t unique = 0;
21742 uint32_t ranges = 0;
21743 uint64_t hint_bytes = 0;
21744 const uint32_t gap = metal_graph_stream_prefill_selected_readahead_gap();
21745 if (ok) {
21746 for (uint64_t i = 0; i < n_ids; i++) {
21747 const int32_t expert = selected[i];
21748 if (expert < 0 || (uint32_t)expert >= DS4_N_EXPERT) {
21749 fprintf(stderr,
21750 "ds4: Metal streaming prefill selected expert id %d is outside 0..%u at layer %u\n",
21751 expert,
21752 (uint32_t)DS4_N_EXPERT,
21753 il);
21754 ok = false;
21755 break;
21756 }
21757 if (seen[expert]) continue;
21758 seen[expert] = true;
21759 unique++;
21760 }
21761 }

Callers 3

bpe_rankFunction · 0.85
bpe_emit_pieceFunction · 0.85
vocab_lookupFunction · 0.85

Calls 1

hash_bytesFunction · 0.85

Tested by

no test coverage detected