Skip to content

Commit

Permalink
[wasm] Fix logic for getting path to WASM binary. (#3764)
Browse files Browse the repository at this point in the history
BUG
  • Loading branch information
annxingyuan authored Aug 10, 2020
1 parent 6a5e29d commit dbeb67b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tfjs-backend-wasm/src/backend_wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ function getPathToWasmBinary(
let path: WasmBinaryName = 'tfjs-backend-wasm.wasm';
if (simdSupported && threadsSupported) {
path = 'tfjs-backend-wasm-threaded-simd.wasm';
}

if (simdSupported) {
} else if (simdSupported) {
path = 'tfjs-backend-wasm-simd.wasm';
}

Expand Down

0 comments on commit dbeb67b

Please sign in to comment.