MCPcopy Create free account
hub / github.com/Niko1221/Strata / gather_dev

Method gather_dev

engine/src/core/native_head.cpp:629–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void NativeEmbed::gather_dev(const int32_t* tokens, int64_t n_tok, float* out, void* stream) const {
630 strata::kernels::iq_embed_rows(type_, dev_, row_, tokens, n_tok, n_embd_, out, stream);
631}
632
633void NativeEmbed::gather_one(int64_t token, float* out, void* stream) const {
634 strata::kernels::iq_dequant_f32(type_, (const uint8_t*) dev_ + (size_t) token * row_, n_embd_, out, stream);

Callers 7

bindMethod · 0.45
verify.cppFile · 0.45
record_frontMethod · 0.45
record_front_slotsMethod · 0.45
draft_kvMethod · 0.45
prefill.cppFile · 0.45
lm_runMethod · 0.45

Calls 1

iq_embed_rowsFunction · 0.50

Tested by

no test coverage detected