MCPcopy Create free account
hub / github.com/Niko1221/Strata / cut

Method cut

engine/src/split/src/batch.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void 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
65BatchDecoder::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) {

Callers 2

decode_stepMethod · 0.45
fitMethod · 0.45

Calls 3

maxFunction · 0.50
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected