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

Use panama vector for l2normalize #12518

Merged

Conversation

benwtrent
Copy link
Member

Seems like a minor oversight, but we should use panama vector for l2normlize.

While this code isn't really used in hot-paths, it is a public API I could easily see folks using before indexing vectors into Lucene.

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ChrisHegarty
Copy link
Contributor

How about we add a test scenario to TestVectorUtilSupport.

@ChrisHegarty
Copy link
Contributor

How about we add a test scenario to TestVectorUtilSupport.

Ignore. I thought that the method was at a different level in the hierarchy. My comment doesn't make sense.

@benwtrent benwtrent merged commit d1c3531 into apache:main Aug 29, 2023
4 checks passed
@benwtrent benwtrent deleted the feature/add-l2-normalizer-vector-method branch August 29, 2023 12:33
benwtrent added a commit that referenced this pull request Aug 29, 2023
Use panama vector for l2normalize
@uschindler
Copy link
Contributor

LGTM

@zhaih zhaih added this to the 9.8.0 milestone Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants