-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reset & dispose #42
base: main
Are you sure you want to change the base?
Conversation
METRIC_L1, ///< L1 (aka cityblock) | ||
METRIC_Linf, ///< infinity distance | ||
METRIC_Lp, ///< L_p distance, p is given by a faiss::Index | ||
METRIC_L1 = 2, ///< L1 (aka cityblock) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the docs weren't smart enough to get the incremental values.
Thanks for your new PR, Noticed that Also, I noticed that the underlying implementation of the |
Dispose is used to free all memory associated with an index. If you're OK with a segfault if calling a method on a released index, then I'm fine reverting the checks from every method.
|
@asilvas In the world of javascript, memory is rarely dealt with, the |
I'd prefer to keep both as there is no other way to free all memory, and have need for recreating a lot of indexes. |
No description provided.