-
Notifications
You must be signed in to change notification settings - Fork 757
add a set of apis to configure wasi-nn via InstantiationArgs2 #4764
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
Open
zhanheng1
wants to merge
28
commits into
bytecodealliance:main
Choose a base branch
from
dongsheng28849455:InstantiationArgs2-wasinn
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
96cdfa6
Add the way to set the target evenif we use load_by_name
60a8011
Add a new error check for wasi_nn_load_by_name
6dc9d01
Use clang-format-18 to format source files
zhanheng1 d42581b
Free model_name
zhanheng1 1cca0b8
Add new errno for new test cases
zhanheng1 9e03970
Fix bugs
zhanheng1 cd1c7f9
Rename some parameters
zhanheng1 c73e4aa
Revert tensorflow version
zhanheng1 0234fe0
CICD: retrigger checks
zhanheng1 4b93110
Remove internal function declarations from wasm_export.h
zhanheng1 6bc7512
Move wasi_nn parameters parse logic into libc_wasi.c
zhanheng1 12d8a18
Allow multiple --wasi-nn-graphs
zhanheng1 8dbba46
Use clang-format-18 to format files
zhanheng1 c024c94
CICD: retrigger checks
zhanheng1 736f357
Add model_name option for --wasi-nn-graphs to make it more flexible a…
zhanheng1 878c8ec
Add help info for wasi-nn test wasm
zhanheng1 c43fbeb
CICD: retrigger checks
zhanheng1 6501e4b
Use a specific error type wasi_nn_error_t instead of macro "WASI_NN_E…
zhanheng1 b122451
Unify WASINNGlobalContext and WASINNArguments into a single structure…
zhanheng1 a85079a
Check integer overflow for wasm_runtime_wasi_nn_registry_set_args
zhanheng1 7b62ec8
Remove strdup in wasi_nn_parse
zhanheng1 01641bf
Remove "encoding" for load_by_name
zhanheng1 eb55c28
Remove some internal functions used by wasi-nn from wasm_export.h
zhanheng1 ccee194
Removed unnecessary conditional checks.
zhanheng1 5357fb5
Move the error checks to an earlier stage.
zhanheng1 4747d61
Use clang-format-18 to format source file
zhanheng1 9e89828
Make wasi_nn_load_by_name and wasi_nn_load_by_name_with_config share …
zhanheng1 7822544
Fix compilation errors for nuttx platform.
zhanheng1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In wasi_ephemeral_nn.h, macros are defined and then wasi_nn.h is included immediately after, but these macro definitions are later undefined (#undef). This means that in utils.h, the macros might be in an undefined state, leading to compilation errors( if WASM_ENABLE_WASI_EPHEMERAL_NN != 0).