Fork of https://android.googlesource.com/platform/frameworks/ml
-
Python, node.js, CMake, and Java are not provided by emsdk. Make sure you have installed these beforehand with the system package manager.
$ git clone https://github.com/Wenzhao-Xiang/webml-polyfill-wasm.git
$ cd webml-polyfill-wasm/
$ git submodule update --init --recursive
$ cd external/tensorflow/
$ ./tensorflow/contrib/makefile/download_dependencies.sh
$ cd ../../
$ mkdir build
$ cd build
$ cmake -D CMAKE_TOOLCHAIN_FILE=/yourDownloadDir/emsdk/emscripten/yourVersion/cmake/Modules/Platform/Emscripten.cmake ..
$ make