Skip to content

Commit

Permalink
Post js fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dakenf committed Nov 19, 2023
1 parent f7405a1 commit 1978faf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/deps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ safeint;https://github.com/dcleblanc/SafeInt/archive/ff15c6ada150a5018c5ef217240
tensorboard;https://github.com/tensorflow/tensorboard/archive/373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81.zip;67b833913605a4f3f499894ab11528a702c2b381
cutlass;https://github.com/NVIDIA/cutlass/archive/refs/tags/v3.0.0.zip;0f95b3c1fc1bd1175c4a90b2c9e39074d1bccefd
extensions;https://github.com/microsoft/onnxruntime-extensions/archive/94142d8391c9791ec71c38336436319a2d4ac7a0.zip;4365ac5140338b4cb75a39944a4be276e3829b3c
eigen;https://gitlab.com/libeigen/eigen/-/archive/3.4/eigen-3.4.zip;ee201b07085203ea7bd8eb97cbcb31b07cfa3efb
eigen;https://gitlab.com/libeigen/eigen/-/archive/3.4/eigen-3.4.zip;3f6556b9666ced3c1f6fae389218c55c06f93096
composable_kernel;https://github.com/ROCmSoftwarePlatform/composable_kernel/archive/d52ec01652b7d620386251db92455968d8d90bdc.zip;6b5ce8edf3625f8817086c194fbf94b664e1b0e0
2 changes: 1 addition & 1 deletion onnxruntime/wasm/js_post_js.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
Module["PTR_SIZE"] = 4;
Module["createFileFromArrayBuffer"] = (path, buffer) => {
const weightsFile = FS.create(path);
weightsFile.contents = buffer;
weightsFile.contents = new Uint8Array(buffer);
weightsFile.usedBytes = buffer.byteLength;
}
2 changes: 1 addition & 1 deletion onnxruntime/wasm/js_post_js_64.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
Module["PTR_SIZE"] = 8;
Module["createFileFromArrayBuffer"] = (path, buffer) => {
const weightsFile = FS.create(path);
weightsFile.contents = buffer;
weightsFile.contents = new Uint8Array(buffer);
weightsFile.usedBytes = buffer.byteLength;
}

0 comments on commit 1978faf

Please sign in to comment.