hnswlib
hnswlib copied to clipboard
A typo
I think it maybe a typo in file "space_l2.h" at line 225:
data_size_ = dim * sizeof(unsigned char);
why not:
data_size_ = dim * sizeof(int);
Hi @op-hunter thanks for checking the code.
I think this is as it should be. The method works with single-byte integers and returns 4-byte characters.
Probably calling it L2SpaceI
is a bit confusing. I'll update comments to lesser the confusion.