intel / webml-polyfill

Deprecated, the Web Neural Network Polyfill project has been moved to https://github.com/webmachinelearning/webnn-polyfill
Apache License 2.0
161 stars 46 forks source link

[WASM/WebGL] Failed to run WASM/WebGL backend with intel.github.io on Windows #1385

Open mingmingtasd opened 3 years ago

mingmingtasd commented 3 years ago

I find that there is something wrong with intel.github.io. For WASM backend, it reports that "Backend 'wasm' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods". For WebGL backend, page will be frozen on model compilation process.

image

image

BruceDai commented 3 years ago

@mingmingtasd Did enable both SIMD and Threads flags?There's an issue #1381 Failed to run Wasm + SIMD + Threads on https://intel.github.io/webml-polyfill/examples. For testing on WebGL backend, I couldn't reproduce the frozen issue. What's your test environment?

mingmingtasd commented 3 years ago

@mingmingtasd Did enable both SIMD and Threads flags?There's an issue #1381 Failed to run Wasm + SIMD + Threads on https://intel.github.io/webml-polyfill/examples. For testing on WebGL backend, I couldn't reproduce the frozen issue. What's your test environment?

Please reproduce on windows with intel.github.io. The issue occurs whether I enable the simd/thread or not.

BruceDai commented 3 years ago

@mingmingtasd I have update the github-page with tf.js 2.0.1. I check this issue on my side on Linux and Windows platform, it isn't reproduced. Would you please verify it on your side, thanks.

mingmingtasd commented 3 years ago

@mingmingtasd I have update the github-page with tf.js 2.0.1. I check this issue on my side on Linux and Windows platform, it isn't reproduced. Would you please verify it on your side, thanks.

LGTM, verified yet, you can close this issue now, thanks! @BruceDai