Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WASM] The tfjs-backend-wasm module try to find simd binary when I specify a wasm file #3771

Closed
akineeic opened this issue Aug 11, 2020 · 1 comment

Comments

@akineeic
Copy link

TensorFlow.js version

2.0.1

Browser version

84.0.4147.105 (Official Build) (64-bit)

Describe the problem or feature request

I use setWasmPath to set path to wasm binary(tfjs-backend-wasm.wasm), but the module seem to find tfjs-backend-wasm-simd.wasm in the same path instead and cause the error file not found. Why the module try to import simd binary file since I specified a wasm file?

@annxingyuan
Copy link
Contributor

Hi @akineeic - thank you for reporting this. This behavior will be fixed in our next release: #3627

Our next release will deprecate setWasmPath and include a new function setWasmPaths (notice the 's' at the end) which will accept either a string indicating the folder where all your WASM binaries can be found, or a map specifying the location of each binary: https://github.com/tensorflow/tfjs/blob/master/tfjs-backend-wasm/src/backend_wasm.ts#L403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants