Skip to content

Commit

Permalink
[README] Update changelog for 0.12.0-alpha.1 pre-release.
Browse files Browse the repository at this point in the history
Signed-off-by: YiYing He <yiying@secondstate.io>
  • Loading branch information
q82419 committed Dec 23, 2022
1 parent 9a85020 commit 43c5974
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 20 deletions.
7 changes: 4 additions & 3 deletions .CurrentChangelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### 0.11.2 (2022-11-03)
### 0.12.0-alpha.1 (2022-12-23)

This is the host function extension for [WasmEdge](https://github.com/WasmEdge/WasmEdge).
Please refer to the [WasmEdge 0.11.2](https://github.com/WasmEdge/WasmEdge/releases/tag/0.11.2) for more details.
Please refer to the [WasmEdge 0.12.0-alpha.1](https://github.com/WasmEdge/WasmEdge/releases/tag/0.12.0-alpha.1) for more details.

Features:

* Update the `WasmEdge` dependency to `0.11.2`.
* Update the `WasmEdge` dependency to `0.12.0-alpha.1`.
* Update to use the `libtensorflow_cc` C++ API.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ option(WASMEDGE_TENSORFLOW_BUILD_SHARED_LIB "Generate the libwasmedge-tensorflow

# WasmEdge dependencies versions
if(NOT WASMEDGE_DEPS_VERSION)
set(WASMEDGE_DEPS_VERSION "0.11.2")
set(WASMEDGE_DEPS_VERSION "0.12.0-alpha.1")
endif()

# Check the build architecture and system.
Expand Down
10 changes: 10 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### 0.12.0-alpha.1 (2022-12-23)

This is the host function extension for [WasmEdge](https://github.com/WasmEdge/WasmEdge).
Please refer to the [WasmEdge 0.12.0-alpha.1](https://github.com/WasmEdge/WasmEdge/releases/tag/0.12.0-alpha.1) for more details.

Features:

* Update the `WasmEdge` dependency to `0.12.0-alpha.1`.
* Update to use the `libtensorflow_cc` C++ API.

### 0.11.2 (2022-11-01)

This is the host function extension for [WasmEdge](https://github.com/WasmEdge/WasmEdge).
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ The [WasmEdge](https://github.com/WasmEdge/WasmEdge) is a high performance WebAs

The WasmEdge Tensorflow shared library `libwasmedge-tensorflow_c.so` and `libwasmedge-tensorflowlite_c.so` are provided for the `WasmEdge-Tensorflow` extension of the WasmEdge shared library.
The WasmEdge Tensorflow static library `libwasmedgeHostModuleWasmEdgeTensorflow.a` and `libwasmedgeHostModuleWasmEdgeTensorflowLite.a` are provided for statical linking when building executables with CMake.
When linking with `libwasmedge-tensorflow_c.so` and `libwasmedgeHostModuleWasmEdgeTensorflow.a`, the TensorFlow shared libraries `libtensorflow.so` and `libtensorflow_framework.so` are required.
When linking with `libwasmedge-tensorflow_c.so` and `libwasmedgeHostModuleWasmEdgeTensorflow.a`, the TensorFlow shared libraries `libtensorflow_cc.so` and `libtensorflow_framework.so` are required.
When linking with `libwasmedge-tensorflowlite_c.so` and `libwasmedgeHostModuleWasmEdgeTensorflowLite.a`, the TensorFlow-Lite shared library `libtensorflowlite_c.so` is required.

The official TensorFlow release only provide the TensorFlow shared library.
You can download and install the pre-built shared libraries:

```bash
wget https://github.com/second-state/WasmEdge-tensorflow-deps/releases/download/0.11.2/WasmEdge-tensorflow-deps-TF-0.11.2-manylinux2014_x86_64.tar.gz
tar -zxvf WasmEdge-tensorflow-deps-TF-0.11.2-manylinux2014_x86_64.tar.gz
rm -f WasmEdge-tensorflow-deps-TF-0.11.2-manylinux2014_x86_64.tar.gz
ln -sf libtensorflow.so.2.6.0 libtensorflow.so.2
ln -sf libtensorflow.so.2 libtensorflow.so
wget https://github.com/second-state/WasmEdge-tensorflow-deps/releases/download/0.12.0-alpha.1/WasmEdge-tensorflow-deps-TF-0.12.0-alpha.1-manylinux2014_x86_64.tar.gz
tar -zxvf WasmEdge-tensorflow-deps-TF-0.12.0-alpha.1-manylinux2014_x86_64.tar.gz
rm -f WasmEdge-tensorflow-deps-TF-0.12.0-alpha.1-manylinux2014_x86_64.tar.gz
ln -sf libtensorflow_cc.so.2.6.0 libtensorflow_cc.so.2
ln -sf libtensorflow_cc.so.2 libtensorflow_cc.so
ln -sf libtensorflow_framework.so.2.6.0 libtensorflow_framework.so.2
ln -sf libtensorflow_framework.so.2 libtensorflow_framework.so
wget https://github.com/second-state/WasmEdge-tensorflow-deps/releases/download/0.11.2/WasmEdge-tensorflow-deps-TFLite-0.11.2-manylinux2014_x86_64.tar.gz
tar -zxvf WasmEdge-tensorflow-deps-TFLite-0.11.2-manylinux2014_x86_64.tar.gz
rm -f WasmEdge-tensorflow-deps-TFLite-0.11.2-manylinux2014_x86_64.tar.gz
wget https://github.com/second-state/WasmEdge-tensorflow-deps/releases/download/0.12.0-alpha.1/WasmEdge-tensorflow-deps-TFLite-0.12.0-alpha.1-manylinux2014_x86_64.tar.gz
tar -zxvf WasmEdge-tensorflow-deps-TFLite-0.12.0-alpha.1-manylinux2014_x86_64.tar.gz
rm -f WasmEdge-tensorflow-deps-TFLite-0.12.0-alpha.1-manylinux2014_x86_64.tar.gz
```

### Prepare the environment
Expand Down Expand Up @@ -59,7 +59,7 @@ sudo apt install -y clang
```bash
git clone --recursive https://github.com/second-state/WasmEdge-tensorflow.git
cd WasmEdge-tensorflow
git checkout 0.11.2
git checkout 0.12.0-alpha.1
```

### Build WasmEdge-Tensorflow
Expand Down
10 changes: 5 additions & 5 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if(ANDROID)
endif()

# FIXME: This is a workaround solution.
# Linking libwasmedge-tensorflow_c.dylib for MacOS needs the libtensorflow.2.6.0.dylib and libtensorflow_framework.2.6.0.dylib.
# Linking libwasmedge-tensorflow_c.dylib for MacOS needs the libtensorflow_cc.2.6.0.dylib and libtensorflow_framework.2.6.0.dylib.
# Linking libwasmedge-tensorflowlite_c.dylib for MacOS needs the libtensorflow_c.dylib.
if(APPLE)
# FIXME: Support M1 in the future.
Expand All @@ -88,20 +88,20 @@ if(APPLE)
FetchContent_Declare(
wasmedgetensorflowdeps
URL "https://github.com/second-state/WasmEdge-tensorflow-deps/releases/download/${WASMEDGE_DEPS_VERSION}/WasmEdge-tensorflow-deps-TF-${WASMEDGE_DEPS_VERSION}-darwin_x86_64.tar.gz"
URL_HASH "SHA256=df8720bb089528dd6930983d0ff23adbae75ad7b92451245702ce24002b5f3c4"
URL_HASH "SHA256=c1906b81b5db7f6f4fefce3c825a240a92f0d897dee41e2e1b294c9173132f2d"
)
FetchContent_GetProperties(wasmedgetensorflowdeps)
if(NOT wasmedgetensorflowdeps_POPULATED)
FetchContent_Populate(wasmedgetensorflowdeps)
execute_process(
COMMAND ${CMAKE_COMMAND} -E create_symlink libtensorflow.2.6.0.dylib ${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow.2.dylib
COMMAND ${CMAKE_COMMAND} -E create_symlink libtensorflow.2.dylib ${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow.dylib
COMMAND ${CMAKE_COMMAND} -E create_symlink libtensorflow_cc.2.6.0.dylib ${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow_cc.2.dylib
COMMAND ${CMAKE_COMMAND} -E create_symlink libtensorflow_cc.2.dylib ${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow_cc.dylib
COMMAND ${CMAKE_COMMAND} -E create_symlink libtensorflow_framework.2.6.0.dylib ${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow_framework.2.dylib
COMMAND ${CMAKE_COMMAND} -E create_symlink libtensorflow_framework.2.dylib ${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow_framework.dylib
)
endif()
set(WASMEDGE_TENSORFLOW_DEPS_TF_LIB
"${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow.2.6.0.dylib"
"${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow_cc.2.6.0.dylib"
"${wasmedgetensorflowdeps_SOURCE_DIR}/libtensorflow_framework.2.6.0.dylib"
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion utils/WasmEdge-tensorflow-deps

0 comments on commit 43c5974

Please sign in to comment.