Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

wasm: update backend to consume latest ONNX Runtime#270

Open
fs-eire wants to merge 4 commits intomicrosoft:masterfrom
fs-eire:wasm
Open

wasm: update backend to consume latest ONNX Runtime#270
fs-eire wants to merge 4 commits intomicrosoft:masterfrom
fs-eire:wasm

Conversation

@fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Mar 6, 2021

this change allows to use whole ONNXRuntime as the webassembly backend.

tools/build.ts Outdated
'--llvm-lto 3',
];
const OUT_WASM_JS = path.join(OUT, 'onnxruntime_wasm.js');
const OUT_WASM = path.join(OUT, 'onnxruntime_wasm.wasm');
Copy link

@Zuwei-Zhao Zuwei-Zhao Apr 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, for multi-threading WebAssembly, we will need to change the file names here. Thanks.

tools/build.ts Outdated
if (exportedFunctions.length === 0) {
npmlog.error('Build.Wasm', `No exported functions specified in the file: ${SRC_WASM_BUILD_CONFIG}`);
if (!fs.existsSync(OUT_WASM)) {
npmlog.error('Build.Wasm', 'Please make sure onnxruntime_wasm.wasm is built and exists in /dist/');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, OUT_WASM needs to be changed to "onnxruntime_wasm_threads.wasm" for multi-threading WebAssembly. Please also consider this in the PR. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants