| 1111 | } |
| 1112 | |
| 1113 | bool 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 | |
| 1129 | llama_memory_status llama_memory_recurrent_context::get_status() const { |
| 1130 | return status; |
nothing calls this directly
no test coverage detected