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

Use names to identify tensors #61

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Oct 28, 2023

Closes #48.

@@ -127,7 +127,7 @@ interface inference {
compute: func(ctx: graph-execution-context) -> result<_, error>;

/// Extract the outputs after inference.
get-output: func(ctx: graph-execution-context, index: u32) -> result<tensor-data, error>;
get-output: func(ctx: graph-execution-context, name: string) -> result<tensor-data, error>;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably return tensor and not tensor data, but is outside the scope of the changes in this PR>

@abrown abrown marked this pull request as ready for review November 9, 2023 20:34
@abrown
Copy link
Collaborator Author

abrown commented Nov 9, 2023

Ok, merging like we discussed in the 10-31 meeting.

@abrown abrown merged commit 8bd40e2 into WebAssembly:main Nov 9, 2023
1 check passed
@abrown abrown deleted the named-tensors branch November 9, 2023 20:39
@abrown abrown mentioned this pull request Nov 9, 2023
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.

Use names instead of numbers to identify inputs and outputs
2 participants