Closed BruceDai closed 1 year ago
Can webnn-polyfill tell which wasm impl is used tfjs-backend-wasm-threaded-simd.wasm
or tfjs-backend-wasm-simd.wasm
?
Can webnn-polyfill tell which wasm impl is used
tfjs-backend-wasm-threaded-simd.wasm
ortfjs-backend-wasm-simd.wasm
?
Addressed it with new printWasmBinary
method, please take another look, thanks. @huningxin
This updated commit is for user setting Wasm backend with Wasm binary path and threads count configurations by tf and wasm interface from context.
@huningxin @Honry Please take another look, thanks.
please also update the version in package.json.
Done, PTAL, thanks.
Thanks for your reviewing! Let's merge it.
Current WebNN-Polyfill auto select WASM backend depending on environment's supports of TensorFlow Wasm backend, see below codes
This PR is to expose wasm interface for user conveniently configuring threads for WASM backend if environment supported multi-threads, likes
@huningxin @Honry PTAL, thanks.