Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2018-01-22 16:44:45 +0300
committerHieu Hoang <hieuhoang@gmail.com>2018-01-22 16:44:45 +0300
commita27f16972b18b9f06dac9b501160192e4f319e32 (patch)
tree63833a2c25db61393848d97f3e2b0e3373ba1853
parentaf6427767218a77658841f56365ab1c958c0547e (diff)
correct active sentences vector size
-rw-r--r--src/amun/gpu/decoder/encoder_decoder.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amun/gpu/decoder/encoder_decoder.cu b/src/amun/gpu/decoder/encoder_decoder.cu
index ef18a868..1375b374 100644
--- a/src/amun/gpu/decoder/encoder_decoder.cu
+++ b/src/amun/gpu/decoder/encoder_decoder.cu
@@ -188,7 +188,7 @@ void EncoderDecoder::DecodeAsyncInternal()
InitBatch(histories, sentenceLengths, sourceContext, SCU, *state);
//cerr << "prevHyps2=" << prevHyps.size() << endl;
- std::vector<unsigned> activeCount(histories.size(), 0);
+ std::vector<unsigned> activeCount(histories.size() + 1, 0);
unsigned step = 0;
while (histories.NumActive()) {