You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute/source/docker.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ Developers can use the `docker pull wasmedge/wasmedge:{tag_name}` command to pul
12
12
13
13
| tag name | arch | based operating system | LLVM version | ENVs | compatibility | comments |
14
14
| --- | --- | --- | --- | --- | --- | --- |
15
-
|`latest`| x86_64 | Ubuntu 20.04 LTS |12.0.0| CC=clang, CXX=clang++ | Ubuntu 20.04+ | This is for CI, will always use the latest Ubuntu LTS release |
16
-
|`ubuntu-build-gcc`| x86_64 | Ubuntu 20.04 LTS |12.0.0| CC=gcc, CXX=g++ | Ubuntu 20.04+ | This is for CI, will always use the latest Ubuntu LTS release |
17
-
|`ubuntu-build-clang`| x86_64 | Ubuntu 20.04 LTS |12.0.0| CC=clang, CXX=clang++ | Ubuntu 20.04+ | This is for CI, will always use the latest Ubuntu LTS release |
15
+
|`latest`| x86_64 | Ubuntu 22.04 LTS |15.0.7| CC=clang, CXX=clang++ | Ubuntu 22.04+ | This is for CI, will always use the latest Ubuntu LTS release |
16
+
|`ubuntu-build-gcc`| x86_64 | Ubuntu 22.04 LTS |15.0.7| CC=gcc, CXX=g++ | Ubuntu 22.04+ | This is for CI, will always use the latest Ubuntu LTS release |
17
+
|`ubuntu-build-clang`| x86_64 | Ubuntu 22.04 LTS |15.0.7| CC=clang, CXX=clang++ | Ubuntu 22.04+ | This is for CI, will always use the latest Ubuntu LTS release |
18
18
|`ubuntu2004_x86_64`| x86_64 | Ubuntu 20.04 LTS | 10.0.0 | CC=gcc, CXX=g++ | Ubuntu 20.04+ | This is for developers who familiar with Ubuntu 20.04 LTS release |
19
19
|`ubuntu2104_armv7l`| armhf | Ubuntu 21.04 | 12.0.0 | CC=gcc, CXX=g++ | Ubuntu 21.04+ | This is for armhf release |
20
-
|`manylinux2014_x86_64`| x86_64 | CentOS 7, 7.9.2009 |12.0.0| CC=gcc, CXX=g++ | Ubuntu 16.04+, CentOS 7+ | This is for developers who familiar with CentOS on x86_64 architecture |
21
-
|`manylinux2014_aarch64`| aarch64 | CentOS 7, 7.9.2009 |12.0.0| CC=gcc, CXX=g++ | Ubuntu 16.04+, CentOS 7+ | This is for developers who familiar with CentOS on aarch64 architecture |
20
+
|`manylinux2014_x86_64`| x86_64 | CentOS 7, 7.9.2009 |16.0.5| CC=gcc, CXX=g++ | Ubuntu 16.04+, CentOS 7+ | This is for developers who familiar with CentOS on x86_64 architecture |
21
+
|`manylinux2014_aarch64`| aarch64 | CentOS 7, 7.9.2009 |16.0.5| CC=gcc, CXX=g++ | Ubuntu 16.04+, CentOS 7+ | This is for developers who familiar with CentOS on aarch64 architecture |
Copy file name to clipboardExpand all lines: docs/develop/rust/command.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Application developers for WasmEdge can use our Rust interface crate to access t
17
17
18
18
```toml
19
19
[dependencies]
20
-
rust_process_interface_library = "0.1.3"
20
+
wasmedge_process_interface = "0.2.1"
21
21
```
22
22
23
23
In the Rust application, you can now use the API methods to start a new process for the operating system command program, pass in arguments via the `arg()` method as well as via the `STDIN`, and receives the return values via the `STDOUT`.
Copy file name to clipboardExpand all lines: docs/develop/rust/tensorflow.md
+130-1Lines changed: 130 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,133 @@ sidebar_position: 7
4
4
5
5
# TensorFlow Interface
6
6
7
-
WIP
7
+
Developers can use [WASI-NN](/category/neural-networks-for-wasi) to inference the models. However, for the TensorFlow and TensorFlow-Lite users, the WASI-NN APIs are not so friendly to retrieve the input and output tensors. Therefore WasmEdge provides the TensorFlow related plug-in and rust SDK for inferencing models in WASM.
8
+
9
+
## Prerequisite
10
+
11
+
Please make sure that you [Rust and WasmEdge installed](setup.md).
12
+
13
+
Developers will add the [`wasmedge_tensorflow_interface` crate](https://crates.io/crates/wasmedge_tensorflow_interface) as a dependency to their `Rust -> Wasm` applications. For example, add the following line to the application's `Cargo.toml` file.
14
+
15
+
```toml
16
+
[dependencies]
17
+
wasmedge_tensorflow_interface = "0.3.0"
18
+
```
19
+
20
+
Developers will bring the functions of `wasmedge_tensorflow_interface` into scope within their `Rust -> Wasm` application's code. For example, adding the following code to the top of their `main.rs`
21
+
22
+
```rust
23
+
use wasmedge_tensorflow_interface;
24
+
```
25
+
26
+
## Image Loading And Conversion
27
+
28
+
In this crate, we provide several functions to decode and convert images into tensors by using the `WasmEdge-Image` host functions.
29
+
30
+
For using these funcions in WASM and executing in WasmEdge, users should [install WasmEdge with WasmEdge-Image plug-in](../../start/install.md#wasmedge-image-plug-in).
31
+
32
+
For decoding the `JPEG` images, there are:
33
+
34
+
```rust
35
+
// Function to decode JPEG from buffer and resize to RGB8 format.
// The flat_img is a vec<f32> which contains normalized image in rgb32f format and resized to 224x224.
66
+
```
67
+
68
+
## Inferring TensorFlow And TensorFlow-Lite Models
69
+
70
+
For using the `TFSession` struct to inference the TensorFlow models and executing in WasmEdge, users should install the [WasmEdge-TensorFlow plug-in with dependencies](../../start/install.md#wasmedge-tensorflow-plug-in).
71
+
72
+
For using the `TFLiteSession` struct and to inference the TensorFlow-Lite models executing in WasmEdge, users should install the [WasmEdge-TensorFlowLite plug-in with dependencies](../../start/install.md#wasmedge-tensorflow-lite-plug-in).
73
+
74
+
### Create Session
75
+
76
+
First, developers should create a session to load the TensorFlow or TensorFlow-Lite model.
77
+
78
+
```rust
79
+
// The mod_buf is a vec<u8> which contains the model data.
The above function is create the session for TensorFlow frozen models. Developers can use the `new_from_saved_model` function to create from saved-models:
84
+
85
+
```rust
86
+
// The mod_path is a &str which is the path to saved-model directory.
Copy file name to clipboardExpand all lines: docs/start/build-and-run/cli.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ sidebar_position: 1
4
4
5
5
# The `wasmedge` CLI
6
6
7
-
After intalling WasmEdge, you can use the `wasmedge` CLI to execute a WASM files. We will cover how to run WASM files with WasmEdge on your own machine and Docker images.
7
+
After installing WasmEdge, you can use the `wasmedge` CLI to execute a WASM files. We will cover how to run WASM files with WasmEdge on your own machine and Docker images.
8
8
9
9
The `wasmedge` binary is a command line interface (CLI) program that runs WebAssembly programs.
The Docker images in this section are mostly used for development purposes. They allow you to use WasmEdge tools in containerized Linux environments. If you want to containerize WASM apps, check out [this](../getting-started/quick_start_docker) section.
272
+
The Docker images in this section are mostly used for development purposes. They allow you to use WasmEdge tools in containerized Linux environments. If you want to containerize WASM apps, check out [this](../getting-started/quick_start_docker.md) section.
273
273
274
274
The `wasmedge/slim:{version}` Docker images provide a slim WasmEdge images built with [DockerSlim](https://dockersl.im) every releases.
0 commit comments