Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix cupy.histogramdd for NumPy 2.x#8873

Merged
kmaehashi merged 1 commit into
cupy:mainfrom
asi1024:fix-histogramdd
Jan 16, 2025
Merged

Fix cupy.histogramdd for NumPy 2.x#8873
kmaehashi merged 1 commit into
cupy:mainfrom
asi1024:fix-histogramdd

Conversation

@asi1024

@asi1024 asi1024 commented Jan 16, 2025

Copy link
Copy Markdown
Member

Part of #8306.

Comment on lines +97 to +101
first_edge = 0
last_edge = 1
else:
first_edge = float(a.min())
last_edge = float(a.max())
first_edge = a.min()
last_edge = a.max()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

if issubclass(sample.dtype.type, numpy.inexact)
else numpy.float64)
edges[i] = cupy.linspace(smin, smax, num, dtype=dtyp)
edges[i] = cupy.linspace(smin, smax, num)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@asi1024

asi1024 commented Jan 16, 2025

Copy link
Copy Markdown
Member Author

/test mini

@linshokaku linshokaku added cat:numpy-compat Follow the NumPy/SciPy spec changes prio:medium labels Jan 16, 2025
@kmaehashi kmaehashi merged commit ce920d7 into cupy:main Jan 16, 2025
@kmaehashi kmaehashi added this to the v14.0.0a1 milestone Jan 16, 2025
@asi1024 asi1024 deleted the fix-histogramdd branch January 16, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:numpy-compat Follow the NumPy/SciPy spec changes prio:medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants