expTable array initialization
GoogleCodeExporter opened this issue · 0 comments
GoogleCodeExporter commented
In the end of word2vec.c there's "malloc" of size EXP_TABLE_SIZE + 1
But the next "for" loop is for(i=0; i < EXP_TABLE_SIZE; ++i)
That means, expTable[EXP_TABLE_SIZE] is uninitialized.
As the result - we can see different program output on the same input data.
Original issue reported on code.google.com by alex.y.t...@gmail.com
on 1 Dec 2014 at 7:11