Skip to content
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

Reset distance function in __setstate__ #240

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

smartIU
Copy link
Contributor

@smartIU smartIU commented May 13, 2024

Resetting the distance function in setstate, so evaluations like "dist == pynnd_dist.bit_hamming" work as intended after unpickle. Otherwise trying to load a pickled model with bitpacked vectors will fail in _init_search_function.

Resetting the distance function in __setstate__, so evaluations like "dist == pynnd_dist.bit_hamming" work as intended after unpickle
@lmcinnes
Copy link
Owner

Great work, thank you!

@lmcinnes lmcinnes merged commit ac9cc12 into lmcinnes:master May 13, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants