MCPcopy Create free account
hub / github.com/cactus-compute/cactus / reset

Method reset

cactus/engine/engine_cache.cpp:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void KVCache::reset() {
55 current_seq_len = 0;
56 total_seq_len = 0;
57}
58
59void* KVCache::get_key_ptr(size_t layer) {
60 if (current_seq_len == 0 || layer >= num_layers) return nullptr;

Callers 15

reset_cacheMethod · 0.45
get_embeddingsMethod · 0.45
load_weights_to_graphMethod · 0.45
reset_cacheMethod · 0.45
reset_cacheMethod · 0.45
forwardMethod · 0.45
reset_cacheMethod · 0.45
forwardMethod · 0.45
load_weights_to_graphMethod · 0.45
load_weights_to_graphMethod · 0.45
forwardMethod · 0.45
decode_with_audioMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected