-
Notifications
You must be signed in to change notification settings - Fork 1
Fast argmax #66
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
Fast argmax #66
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #66 +/- ##
==========================================
+ Coverage 76.70% 77.21% +0.50%
==========================================
Files 19 20 +1
Lines 1391 1422 +31
Branches 270 272 +2
==========================================
+ Hits 1067 1098 +31
Misses 308 308
Partials 16 16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
imops/argmax.py
Outdated
| result = argmax(x, axis=-1) | ||
| ``` | ||
| """ | ||
| if array.shape[axis] > 256: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Is <256 enough?
| name = 'imops' | ||
| on_windows = platform.system() == 'Windows' | ||
| args = ['/openmp' if on_windows else '-fopenmp'] | ||
| args = ['/openmp' if on_windows else '-fopenmp', '-march=native', '-O3'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you measure performance diff?
This reverts commit d4cb66c.
No description provided.