NVIDIA / NVIDIA/cuvs

[FEA][Language Wrappers] Remove dataset views from language wrappers

Open
#2,394 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

https://github.com/NVIDIA/cuvs/pull/1846#discussion_r3688007585
https://github.com/NVIDIA/cuvs/pull/1846#discussion_r3678355568
@tarang-jain mentioned in slack:
We should remove the explicit "view" type above and add a member to the dataset_t to designate whether it's owning (this isn't unlike Python ndarray)
We should make sure the c++ impl of the C apis is properly creating a view when needed (if the dastaset_t passed in is owning)

Follow up with @aamijar, @tarang-jain, and @divyegala

Current status is none of the language wrappers have had views removed yet except python (confirm with @tarang-jain). For other language wrappers, we need to evaluate each on a case by case basis.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked pull request discussions and inspect the existing language-wrapper implementations, noting that Python has already removed views while the other wrappers have not. Follow up with @aamijar, @tarang-jain, and @divyegala to determine the required behavior for each wrapper; done means evaluating and updating the applicable wrappers consistently with the C++ C-API implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, backend-api-design
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.