|
|
4 سال پیش | |
|---|---|---|
| .. | ||
| README.md | 4 سال پیش | |
| build.sh | 4 سال پیش | |
| tf_lite.patch | 4 سال پیش | |
This sample demonstrates how to build tensorflow into WebAssembly with emsdk toolchain and run it with iwasm. Please first install emsdk:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 2.0.26
./emsdk activate 2.0.26
And set up ensdk environment:
source emsdk_env.sh
Then run
./build.sh
# for linux platform, or
./build.sh --sgx
# for linux-sgx platform or
./build.sh --threads
# for multi-thread execution (on linux platform)
to build tensorflow and run it with iwasm, which basically contains the following steps: