|
Download modules/dnn/src/webnn/README.md from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/webnn/README.md
- Command line
-
hf download hf://tgollogly/test/modules/dnn/src/webnn/README.md
-
curl -L -o README.md https://huggingface.co/tgollogly/test/resolve/main/modules/dnn/src/webnn/README.md
652 Bytes
| ## Build Instructions | |
| ### Build WebNN-native and set the environment variable | |
| Refer to [WebNN's build instructions](https://github.com/webmachinelearning/webnn-native) to complete the build of WebNN-native. | |
| Set environment variable `WEBNN_NATIVE_DIR` to enable native DNN_BACKEND_WEBNN build: `export WEBNN_NATIVE_DIR=${PATH_TO_WebNN}`. Please let `WEBNN_NATIVE_DIR` points the output directory of webnn-native build (e.g. webnn-native/out/Release). | |
| ### Test native DNN_BACKEND_WEBNN backend | |
| Add -DWITH_WEBNN=ON to the cmake command to build the WebNN module such as: | |
| `cmake -DWITH_WEBNN=ON ../opencv` (according to the @ref tutorial_linux_install) |