| 58 | } |
| 59 | |
| 60 | void BatchLane::cut(int rows) { |
| 61 | const size_t d = (size_t) std::max(0, rows - 1); |
| 62 | if (drafts.size() > d) drafts.resize(d), qs.resize(d); |
| 63 | } |
| 64 | |
| 65 | BatchDecoder::BatchDecoder(Engine& e, int K, int lookup_k, std::vector<int> eos, BatchDrafts mode) |
| 66 | : e_(e), K_(K), LK_(lookup_k), eos_(std::move(eos)), mode_(mode) { |
no test coverage detected