| 4032 | return g_the_window->slot_copy(into_slot, slot, upto, kv_only, err); |
| 4033 | } |
| 4034 | bool window_commit(void* w, int n_keep, std::string& err) { |
| 4035 | const double t0 = now_ms(); |
| 4036 | const bool ok = ((Window*) w)->commit(n_keep, err); |
| 4037 | ((Window*) w)->prof_add(false, now_ms() - t0); |
| 4038 | return ok; |
| 4039 | } |
| 4040 | bool window_copy_logits(void* w, int t, float* host) { return ((Window*) w)->copy_logits(t, host); } |
| 4041 | const float* window_logits(void* w, int t) { return ((Window*) w)->logits_row(t); } |
| 4042 |