MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / apply

Method apply

subprojects/llama.cpp/src/llama-memory-recurrent.cpp:1113–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113bool llama_memory_recurrent_context::apply() {
1114 assert(!llama_memory_status_is_fail(status));
1115
1116 // no ubatches -> this is an update
1117 if (ubatches.empty()) {
1118 // recurrent cache never performs updates
1119 assert(status == LLAMA_MEMORY_STATUS_NO_UPDATE);
1120
1121 return true;
1122 }
1123
1124 mem->find_slot(ubatches[i_next]);
1125
1126 return true;
1127}
1128
1129llama_memory_status llama_memory_recurrent_context::get_status() const {
1130 return status;

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.65
find_slotMethod · 0.45

Tested by

no test coverage detected