Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
void KVCache::reset() {
55
current_seq_len = 0;
56
total_seq_len = 0;
57
}
58
59
void* KVCache::get_key_ptr(size_t layer) {
60
if (current_seq_len == 0 || layer >= num_layers) return nullptr;
Callers
15
reset_cache
Method · 0.45
get_embeddings
Method · 0.45
load_weights_to_graph
Method · 0.45
reset_cache
Method · 0.45
reset_cache
Method · 0.45
forward
Method · 0.45
reset_cache
Method · 0.45
forward
Method · 0.45
load_weights_to_graph
Method · 0.45
load_weights_to_graph
Method · 0.45
forward
Method · 0.45
decode_with_audio
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected