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

Implementing histogramdd #2143

Merged

Conversation

AlexanderKalistratov
Copy link
Collaborator

Implementing histogramdd

dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
@AlexanderKalistratov
Copy link
Collaborator Author

@antonwolfy please re-review PR

dpnp/backend/extensions/statistics/common.hpp Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
@AlexanderKalistratov AlexanderKalistratov force-pushed the histogramdd branch 4 times, most recently from 60776e8 to aec799c Compare December 4, 2024 14:21
@AlexanderKalistratov
Copy link
Collaborator Author

@antonwolfy please re-review pr

dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
dpnp/dpnp_iface_histograms.py Outdated Show resolved Hide resolved
@AlexanderKalistratov
Copy link
Collaborator Author

@antonwolfy

The tests failed due to result type mismatch when running with numpy 2.1.
It seems numpy uses different type promotion in the latest version. Is there something we should align with?
Otherwise we have to keep type_check=False.

The actual issue was in returned bins, and not histogram. We are casting all incoming bins and sample to the same type. Originally we were returning this casted bins.

Now if ndarray was passed as part of bins we are returning this original array instead of casted one.

Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Thank you @AlexanderKalistratov, LGTM!

@AlexanderKalistratov AlexanderKalistratov merged commit 0bfe1e3 into IntelPython:master Dec 8, 2024
44 of 49 checks passed
github-actions bot added a commit that referenced this pull request Dec 8, 2024
Implementation of histogramdd 0bfe1e3
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