Skip to content

[MOD-9576] make CreatePreprocessorsContainerParams templated and move it to header file #670

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

meiravgri
Copy link
Collaborator

add logic to determine the cosine processed_bytes_count

add processed_bytes_count to the cosine component

change blob_size param to the original blob size instead of processed_bytes_count in all preprocessing functions.

Describe the changes in the pull request

A clear and concise description of what the PR is solving.

Which issues this PR fixes

  1. #...
  2. MOD...

Main objects this PR modified

  1. ...
  2. ...

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

…er file

add logic to determine the cosine processed_bytes_count

add processed_bytes_count to the cosine component

change blob_size param to the original blob size instead of processed_bytes_count in all preprocessing functions.
Copy link

codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 83.72093% with 7 lines in your changes missing coverage. Please review.

Project coverage is 96.22%. Comparing base (fbff84f) to head (55837ba).

Files with missing lines Patch % Lines
src/VecSim/spaces/computer/preprocessors.h 73.33% 4 Missing ⚠️
.../VecSim/spaces/computer/preprocessor_container.cpp 75.00% 2 Missing ⚠️
...rc/VecSim/spaces/computer/preprocessor_container.h 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #670      +/-   ##
==========================================
- Coverage   96.24%   96.22%   -0.02%     
==========================================
  Files         112      111       -1     
  Lines        6278     6284       +6     
==========================================
+ Hits         6042     6047       +5     
- Misses        236      237       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@meiravgri meiravgri changed the title make CreatePreprocessorsContainerParams templated and move it to header file [MOD-9576] make CreatePreprocessorsContainerParams templated and move it to header file May 11, 2025
meiravgri added 5 commits May 11, 2025 16:35
add DummyChangeAllocSizePreprocessor class to test pp that changes the size

add tests
one will fail because the input blob size is not updated

for (auto pp : preprocessors) {
if (!pp)
break;
// modifies the memory in place
pp->preprocessStorageInPlace(blob, processed_bytes_count);
pp->preprocessStorageInPlace(blob, input_blob_size);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

will be covered by svs code

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.

1 participant