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

Fast argmax #66

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Fast argmax #66

wants to merge 22 commits into from

Conversation

AnihilatorGun
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 95.55556% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.39%. Comparing base (1aa32ab) to head (45cce6c).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
imops/_build_utils.py 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

result = argmax(x, axis=-1)
```
"""
if array.shape[axis] > 256:
Copy link
Collaborator

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']
Copy link
Collaborator

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?

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