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

add new interface for dataset to get/set num_results #313

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

Conversation

inabao
Copy link
Collaborator

@inabao inabao commented Jan 10, 2025

No description provided.

@inabao inabao self-assigned this Jan 10, 2025
@inabao inabao added the kind/improvement Code improvements (variable/function renaming, refactoring, etc. ) label Jan 10, 2025
NumResults(int64_t num_results) override {
// To maintain compatibility, we currently ensure that the values in NumResults and Dim are the same.
this->data_[NUM_RESULTS] = num_results;
this->data_[DIM] = num_results;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have any dim and num_results are used together ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, dim is input while num_results is output

@wxyucs wxyucs added module/api kind/hold don't merge, need more discussion labels Jan 20, 2025
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

@@            Coverage Diff             @@
##             main     #313      +/-   ##
==========================================
+ Coverage   90.81%   90.85%   +0.03%     
==========================================
  Files         133      133              
  Lines        8429     8438       +9     
==========================================
+ Hits         7655     7666      +11     
+ Misses        774      772       -2     
Flag Coverage Δ
cpp 90.85% <90.90%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
common 94.78% <88.88%> (-0.06%) ⬇️
datacell 91.93% <ø> (+0.15%) ⬆️
index 91.09% <100.00%> (+0.02%) ⬆️
simd 81.63% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eeb0295...d063e5d. Read the comment docs.

@inabao inabao force-pushed the add-num-results branch 2 times, most recently from 6623cf0 to 1f6e4ce Compare January 21, 2025 06:35
jinjiabao.jjb added 3 commits January 22, 2025 16:21
Signed-off-by: jinjiabao.jjb <[email protected]>
Signed-off-by: jinjiabao.jjb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/hold don't merge, need more discussion kind/improvement Code improvements (variable/function renaming, refactoring, etc. ) module/api size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants