bytecodealliance / wasi-nn

High-level bindings for wasi-nn system calls
Apache License 2.0
41 stars 33 forks source link

add pytorch backend flag #63

Closed gusye1234 closed 2 years ago

gusye1234 commented 2 years ago

see #62

abrown commented 2 years ago

@gusye1234, thanks for the contribution, but I don't think this is the right way to add this support:

As a separate issue, the WASI ecosystem has begun a transition from WITX specification files to WIT specification files, which means that the generation step for this file should switch to using WIT-based tools (i.e., wit-bindgen). I don't really expect you to have to worry too much about that (@brianjjones, do you want to take a look?) so I will create a separate issue for that: https://github.com/bytecodealliance/wasi-nn/issues/64. @gusye1234, does that make sense? I am on Zulip if you want to discuss in more detail.

abrown commented 2 years ago

(And apologies for contradicting myself in #62... I think I assumed this option was fine to add but now, looking at it more clearly, I think we need to be able to re-generated that file).

gusye1234 commented 2 years ago

Cool! Your suggestion to sync between this auto-generated file and WIT specification file is better. I should pull a request here and close this one.