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

Adding optional handle to each public API function (along with example) #947

Merged

Conversation

cjnolet
Copy link
Member

@cjnolet cjnolet commented Oct 24, 2022

Closes #946

@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 24, 2022
@cjnolet cjnolet requested review from a team as code owners October 24, 2022 19:05
@github-actions github-actions bot removed the CMake label Oct 24, 2022
@@ -88,7 +91,15 @@ def fused_l2_nn_argmin(X, Y, output, sqrt=True):
dtype=cp.float32)
output = cp.empty((n_samples, 1), dtype=cp.int32)

fused_l2_nn_argmin(in1, in2, output)
# A single RAFT handle can optionally be reused across
Copy link
Member

Choose a reason for hiding this comment

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

Quick comment: we might want to adopt a docstring generator like the one in cuML for common ones like this

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I think centralizing this is a great idea. I'll start looking into the doc function in cuml

@cjnolet
Copy link
Member Author

cjnolet commented Oct 25, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 51eb937 into rapidsai:branch-22.12 Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python
Projects
Development

Successfully merging this pull request may close these issues.

[FEA] pylibraft functions should accept (optional) handle
2 participants