Repository navigation
Conversation
np.prod over a level of speedup ratios overflows float64 to inf or underflows to 0. Take the mean of log(baseline) - log(actual) instead. Non-positive, NaN, and non-finite timings are omitted. A correct sample with actual runtime 0 is an infinite speedup. Co-authored-by: Tony Nguyen <tuannx87@gmail.com>
|
Thanks for picking this up. I ran Two notes:
|
Author
|
Thanks for running it. Updated the description to "Addresses part 1 of #177". On #170: agreed, both PRs change the same filter. One difference: #170 warns when correct samples are skipped, and this PR drops them silently. If #170 lands first, I'll rebase this onto it so its filter and warning stay, and this PR only changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
np.prod over a level of speedup ratios overflows float64 to inf or underflows to 0. Take the mean of log(baseline) - log(actual) instead. Non-positive, NaN, and non-finite timings are omitted. A correct sample with actual runtime 0 is an infinite speedup.
Addresses part 1 of #177 (np.prod overflow/underflow). Part 2 (excessive_speedup not read by benchmark_eval_analysis.py) is left for a separate PR.