作者:一个字-刘斌 | 来源:互联网 | 2023-08-26 11:51
Error message is occuring after shuffle file. During iteration is showing nan values
1 2 3 4 5 6 7 8
| iter: 001, cost: 0.186454
iter: 002, cost: 0.152860
iter: 003, cost: 0.131222
iter: 004, cost: 0.116344
iter: 005, cost: 0.106716
iter: 006, cost: -nan
iter: 007, cost: -nan
iter: 008, cost: -nan |
after that during last glove code it is giving mentioned error
1
| Error in build/glove: double free or corruption (!prev): 0x00000000006244e0 *** |
该提问来源于开源项目:stanfordnlp/GloVe
-g So I did a run with valgrind on the demo corpus and was not able to produce any warnings due to the improperly sized malloc. In any event, I've created a pull request with the suggested fix: https://github.com/stanfordnlp/GloVe/pull/9. Short of having a repro corpus or doing a full rewrite, there isn't much else I can do for these things. But thank you for the report and the suggested fix!