topup whenn half empty

This commit is contained in:
Hieu Hoang 2018-01-19 17:08:49 +00:00
parent 79de7a566e
commit f1033ac281

View File

@ -426,9 +426,8 @@ void EncoderDecoder::AssembleBeamStateTopup(const Histories& histories,
unsigned EncoderDecoder::SentencesToGet(const Histories& histories)
{
///*
if (histories.NumActive() < 256) {
unsigned ret1 = histories.NumInactive();
return ret1;
if (histories.size() < 8 || histories.NumActive() < histories.size() / 2) {
return histories.NumInactive();
}
else {
return 0;