NRE
NRE copied to clipboard
about test.h in CNN+ATT
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
.
Did I miss something? Thanks!
*r is not a random vector,it was computed on vector<double> test(...)
.And i also found vector<double> score
is never used.
1