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

Updating WASI:NN ONNX classification example #9377

Merged

Conversation

danbugs
Copy link
Contributor

@danbugs danbugs commented Oct 4, 2024

This PR updates the wasi:nn ONNX classification example to be up-to-date w/ current practices and tooling. Main changes involve:

  • Start using the currently vendored WIT for wasi-nn, and
  • Updating the WIT bindgen usage of wasi-nn to conform to the latest changes in the interface (e.g., name referencing for tensors).

I think updating this example is helpful for people trying to figure out how to use these tools today.

cc: @abrown , @devigned

Signed-off-by: danbugs <danilochiarlone@gmail.com>
@danbugs danbugs requested a review from a team as a code owner October 4, 2024 23:23
@danbugs danbugs requested review from alexcrichton and removed request for a team October 4, 2024 23:23
@alexcrichton alexcrichton requested review from abrown and removed request for alexcrichton October 5, 2024 00:28
Copy link
Contributor

@abrown abrown left a comment

Choose a reason for hiding this comment

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

LGTM!

opt-level = "s"
debug = false
strip = true
lto = true

[package.metadata.component]
package = "component:classification-component-onnx"

[package.metadata.component.target.dependencies]
Copy link
Contributor

Choose a reason for hiding this comment

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

We can probably get rid of this block now?

@abrown abrown added this pull request to the merge queue Oct 8, 2024
Merged via the queue into bytecodealliance:main with commit cbdf173 Oct 8, 2024
39 checks passed
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.

2 participants