Hi, in /CNN+ATT/test.h, line 114, it seems that the function vector<double> test(int *sentence, int *testPositionE1, int *testPositionE2, int len, float *r) is never used, since vector<double> score is never used in the following codes.
Therefore, * r, which should represent sentence encoding in function vector<double> test(int *sentence, int *testPositionE1, int *testPositionE2, int len, float *r), now is a random vector in void* testMode(void *id ) and is then pushed into r_tmp.
Hi, in /CNN+ATT/test.h, line 114, it seems that the function
vector<double> test(int *sentence, int *testPositionE1, int *testPositionE2, int len, float *r)
is never used, sincevector<double> score
is never used in the following codes.Therefore,
* r
, which should represent sentence encoding in functionvector<double> test(int *sentence, int *testPositionE1, int *testPositionE2, int len, float *r)
, now is a random vector invoid* testMode(void *id )
and is then pushed intor_tmp
.Did I miss something? Thanks!