mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-27 10:33:14 +03:00
minActive for different beam sizes
This commit is contained in:
parent
c9b301772e
commit
dd8beb59a5
@ -616,9 +616,9 @@ unsigned EncoderDecoder::SentencesToGet(const Histories& histories)
|
||||
///*
|
||||
BEGIN_TIMER("SentencesToGet");
|
||||
|
||||
const unsigned MIN_ACTIVE = 120;
|
||||
|
||||
unsigned beamSize = god_.Get<unsigned>("beam-size");
|
||||
unsigned minActive = beamSize - 8;
|
||||
|
||||
unsigned numHypos = histories.GetTotalBeamSize();
|
||||
|
||||
unsigned start = std::max(MIN_ACTIVE, histories.NumActive());
|
||||
|
Loading…
Reference in New Issue
Block a user