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

Remove set-input, get-output #77

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Aug 13, 2024

As discussed in #43, there is no requirement to set up tensors prior to calling compute as well as retrieving them separately afterwards. As of #59, passing around tensors is cheap (they're resources now), so there is no data copy necessary if we adopt this PR. This change proposes removing the set-input and get-output functions, moving all of the tensor-passing to compute. Closes #43.

As discussed in WebAssembly#43, there is no requirement to set up tensors prior to
calling `compute` as well as retrieving them separately afterwards. As
of WebAssembly#59, passing around tensors is cheap (they're resources now), so
there is no data copy necessary if we adopt this PR. This change
proposes removing the `set-input` and `get-output` functions, moving all
of the tensor-passing to `compute`. Closes WebAssembly#43.
@abrown
Copy link
Collaborator Author

abrown commented Oct 28, 2024

Discussed in the ML working group; an uncontroversial change.

@abrown abrown merged commit f7f1ffb into WebAssembly:main Oct 28, 2024
1 check passed
@abrown abrown deleted the remove-input-output branch October 28, 2024 18:48
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.

Eliminate GraphExecutionContext
1 participant