mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-27 10:33:14 +03:00
topup whenn half empty
This commit is contained in:
parent
79de7a566e
commit
f1033ac281
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user