-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add WASI-NN bindings to Wasm Workers Server (#201)
* feat: add WASI-NN bindings to Wasm Workers Server * fix: remove unnecessary var initialization * fix: typo error when closing a conditional assignment * feat: add new documentation about ML inference and WASI-NN * docs: improve docs and remove typos * fix: remove support for tensor files and clarifies why we need to skip 1 --------- Co-authored-by: Rafael Fernández López <[email protected]>
- Loading branch information
1 parent
c390c95
commit 854a621
Showing
27 changed files
with
2,208 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
pub mod data; | ||
pub mod folders; | ||
pub mod http_requests; | ||
pub mod wasi_nn; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2023 VMware, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use serde::Deserialize; | ||
|
||
pub const WASI_NN_BACKEND_OPENVINO: &str = "openvino"; | ||
|
||
#[derive(Deserialize, Clone, Default)] | ||
#[serde(default)] | ||
pub struct WasiNnConfig { | ||
/// List of Machine Learning backends. For now, only "openvino" option is supported | ||
pub allowed_backends: Vec<String>, | ||
} |
This file contains 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 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 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.