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

MemEff: BUGFIX when a batch has no keys #492

Closed
wants to merge 4 commits into from

Conversation

danthe3rd
Copy link
Contributor

@danthe3rd danthe3rd commented Oct 25, 2022

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 25, 2022
danthe3rd pushed a commit that referenced this pull request Oct 25, 2022
ghstack-source-id: 58eadab5d0eccc24d2975fc4cc0eb33ed4914d5c
Pull Request resolved: #492
@danthe3rd danthe3rd requested a review from fmassa October 25, 2022 12:25
danthe3rd pushed a commit that referenced this pull request Oct 25, 2022
ghstack-source-id: 2a43a75c065b4a89857b984a5b9081d30bcbb95c
Pull Request resolved: #492
Copy link
Contributor

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

Can you add a test for this case?

danthe3rd pushed a commit that referenced this pull request Oct 26, 2022
ghstack-source-id: daf5a7bc458b0b9991eb8b7495769fe0f481ad04
Pull Request resolved: #492
danthe3rd pushed a commit that referenced this pull request Oct 27, 2022
ghstack-source-id: 84e11de209464a6a51347f9ba6b08258782bf139
Pull Request resolved: #492
@danthe3rd
Copy link
Contributor Author

Causes some performance regression (about 0.5%) so let's not fix it

@danthe3rd danthe3rd closed this Oct 28, 2022
@fmassa
Copy link
Contributor

fmassa commented Nov 3, 2022

@danthe3rd what happens then in this case? Does it raise an error or just yield wrong numbers?

If it yields wrong results, then I think this is a silent but that should be fixed.

@danthe3rd
Copy link
Contributor Author

@danthe3rd what happens then in this case? Does it raise an error or just yield wrong numbers?

If it yields wrong results, then I think this is a silent but that should be fixed.

Well I'm not even sure what should happen. If there are some queries but no key/no value, I guess it should be zero?
Currently it either outputs NaN or uninitialized values.

@facebook-github-bot facebook-github-bot deleted the gh/danthe3rd/54/head branch November 27, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants