Skip to content

Commit 234acd4

Browse files
fixed quantization script, pull bytes out of Float32Array when quantization is skipped
1 parent d872a14 commit 234acd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/quantize/views/quantizeModel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959

6060
if (isSkipQuantization) {
61-
quantizedTensorArrays.push(tensor.dataSync())
61+
quantizedTensorArrays.push(new Uint8Array(tensor.dataSync().buffer))
6262
weightEntries.push(weightEntry)
6363
return
6464
}

0 commit comments

Comments
 (0)