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

Implement a general array view. #7365

Merged
merged 2 commits into from Nov 4, 2021
Merged

Implement a general array view. #7365

merged 2 commits into from Nov 4, 2021

Conversation

trivialfis
Copy link
Member

  • Replace existing matrix and vector view.

Makes #7309 easier. Once we go to multi-target multi-class, predict leaf will have 5-dim output.

src/gbm/gblinear.cc Outdated Show resolved Hide resolved
tests/cpp/common/test_linalg.cc Outdated Show resolved Hide resolved
* Replace existing matrix and vector view.

lint.

Remove const too.

Doc/Test.

Include.

Use it in AUC.

Win build.

Use int32_t.

Use integral.

force the same type.

Use constexpr for old nvcc.

Test for empty tensor.

Rename to view.

Format.

Better document and perf.

Address reviewer's comment.
@trivialfis
Copy link
Member Author

Added a bit more code comments and an optimization that indexing uses only pointer instead of span.

@trivialfis
Copy link
Member Author

@hcho3 Could you please take another look when you have time?

@trivialfis trivialfis merged commit b06040b into dmlc:master Nov 4, 2021
@trivialfis trivialfis deleted the tensor branch November 4, 2021 20:16
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.

None yet

2 participants