-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Fast argmax #66
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #66 +/- ##
==========================================
+ Coverage 76.70% 77.39% +0.68%
==========================================
Files 19 20 +1
Lines 1391 1433 +42
Branches 270 276 +6
==========================================
+ Hits 1067 1109 +42
Misses 308 308
Partials 16 16 ☔ View full report in Codecov by Sentry. |
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?
@@ -57,13 +57,13 @@ def initialize_options(self): | |||
def get_ext_modules(): | |||
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?
No description provided.