NRE icon indicating copy to clipboard operation
NRE copied to clipboard

about test.h in CNN+ATT

Open ShellingFord221 opened this issue 4 years ago • 2 comments

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!

ShellingFord221 avatar Apr 18 '20 15:04 ShellingFord221

*r is not a random vector,it was computed on vector<double> test(...).And i also found vector<double> score is never used.

JianJianHeng avatar Jul 20 '21 13:07 JianJianHeng

1

revo1111 avatar Aug 06 '23 21:08 revo1111