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

Tweak/add kind to gelu benchmark name #1533

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

syl20bnr
Copy link
Member

Pull Request Template

Checklist

  • Confirmed that run-checks all script has been executed.
  • Made sure the book is up to date with changes in this PR.

Related Issues/PRs

Provide links to relevant issues and dependent PRs.

Changes

Add the kind to gelu benchmark name. Also compute the space required in each column of the report table.

This gives the following names:

Benchmark Backend Median
gelu_Reference ndarray-Cpu 126.145ms
gelu_WithReferenceErf ndarray-Cpu 128.295ms
gelu_WithCustomErf ndarray-Cpu 724.286ms
gelu_autodiff_Reference ndarray-Cpu 814.613ms
gelu_autodiff_WithReferenceErf ndarray-Cpu 398.498ms
gelu_autodiff_WithCustomErf ndarray-Cpu 2.525s

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 86.34%. Comparing base (9f9b52c) to head (2a9b849).

Files Patch % Lines
backend-comparison/src/persistence/base.rs 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1533      +/-   ##
==========================================
- Coverage   86.36%   86.34%   -0.02%     
==========================================
  Files         682      682              
  Lines       77849    77861      +12     
==========================================
- Hits        67231    67230       -1     
- Misses      10618    10631      +13     

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

true => "gelu_autodiff",
false => "gelu",
true => format!("gelu_autodiff_{:?}", self.kind),
false => format!("gelu_{:?}", self.kind),
}
.into()
Copy link
Member

Choose a reason for hiding this comment

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

Don't need the into with the format now.

@syl20bnr syl20bnr force-pushed the tweak/add-kind-to-gelu-benchmark-name branch from 4d588fc to b68a6c3 Compare March 27, 2024 14:47
@syl20bnr syl20bnr force-pushed the tweak/add-kind-to-gelu-benchmark-name branch from b68a6c3 to 2a9b849 Compare March 27, 2024 19:20
@nathanielsimard nathanielsimard merged commit 32a8d80 into main Mar 28, 2024
15 checks passed
@nathanielsimard nathanielsimard deleted the tweak/add-kind-to-gelu-benchmark-name branch March 28, 2024 16:35
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.

2 participants