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

Allow unaligned pointer if the array is empty. #10418

Merged
merged 2 commits into from
Jun 15, 2024

Conversation

trivialfis
Copy link
Member

np.require(data, requirements="A") doesn't affect empty arrays. Some partitions returned by dask might be empty and yet have a non-null pointer. The PR checks the condition before checking the pointer alignment.

@trivialfis trivialfis requested a review from hcho3 June 14, 2024 16:05
@trivialfis trivialfis merged commit 49e25cf into dmlc:master Jun 15, 2024
29 checks passed
@trivialfis trivialfis deleted the arrayinterface-empty branch June 15, 2024 11:10
@hcho3 hcho3 mentioned this pull request Jun 15, 2024
14 tasks
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Jun 15, 2024
Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
trivialfis added a commit that referenced this pull request Jun 15, 2024
…10424)

Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants