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

Number of graph encodings #30

Open
EdorianDark opened this issue Jul 22, 2022 · 2 comments
Open

Number of graph encodings #30

EdorianDark opened this issue Jul 22, 2022 · 2 comments

Comments

@EdorianDark
Copy link

An alternative of specifying an encoding for each possible back end would be to use Open Neural Network Exchange. It is possible to export a model from Pytorch or Tensorflow into the onnx format and use then a runtime like Pytorch or Tensorflow for interference. That would mean, that users could use their favorite framework and only one backend would have to be supported. This would be more in the spirit of WebNN, which doesn't specify the back end.

Interesting for wasmtime could be tract an implementation of onnx in Rust.

@abrown
Copy link
Collaborator

abrown commented Jul 25, 2022

I do not think (yet) that this specification should pick a single encoding format for models. ONNX may be a good choice for some users but not for others; it is hard to justify picking "the standard encoding format" in this specification. If the ecosystem eventually moves to a single encoding format, then I agree that wasi-nn should fix the encoding format and just use that. Until then, it seems useful to allow users to choose.

@EdorianDark
Copy link
Author

If I read WebNN correctly, then there is no encoding format defined. Instead there are some builder constructors, which are then used to build the graph. Since the graph building is not in the hot path, this should not lead to problems. Could that be an alternative also here?

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

No branches or pull requests

2 participants