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

Support column major array. #6765

Merged
merged 2 commits into from
Mar 19, 2021
Merged

Support column major array. #6765

merged 2 commits into from
Mar 19, 2021

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Mar 18, 2021

Close #6762 .
Close #6752 .

@trivialfis
Copy link
Member Author

This PR actually adds support to arbitrary strides.

@hcho3 hcho3 added the Blocking label Mar 19, 2021
src/data/adapter.h Show resolved Hide resolved
src/data/array_interface.h Show resolved Hide resolved
}
};

public:
ArrayAdapterBatch() = default;
Line const GetLine(size_t idx) const {
auto line = array_interface_.SliceRow(idx);
Copy link
Member Author

Choose a reason for hiding this comment

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

@hcho3 Previously we extract a row for the Line, now we just pass the whole array interface into each line.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@trivialfis Ah everything makes sense now. Thanks for taking time to explain.

@trivialfis trivialfis merged commit 4ee8340 into dmlc:master Mar 19, 2021
@trivialfis trivialfis deleted the column-major branch March 19, 2021 21:19
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.

Test for inplace_predict with column major array. [dask] Error with cupy input generated by cudf.
2 participants