Skip to content

Commit a09cf15

Browse files
BruceDaichromium-wpt-export-bot
authored andcommitted
webnn: fix an error of missed handling uint64 data type in test utils
Bug: 411526187 Change-Id: Ic41bb94ce66bf92d65ef63245252216b7c1e4062 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel, mac14.arm64-blink-rel, mac14-blink-rel, mac15.arm64-blink-rel, mac15-blink-rel, linux-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6468356 Auto-Submit: Feng Dai <[email protected]> Commit-Queue: Feng Dai <[email protected]> Reviewed-by: ningxin hu <[email protected]> Reviewed-by: Austin Sullivan <[email protected]> Cr-Commit-Position: refs/heads/main@{#1449688}
1 parent 296b82f commit a09cf15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webnn/resources/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const getTypedArrayData = (type, size, data) => {
204204
for (let i = 0; i < data.length; i++) {
205205
outData[i] = toHalf(data[i]);
206206
}
207-
} else if (type === 'int64') {
207+
} else if (type === 'int64' || type === 'uint64') {
208208
if (typeof (data) === 'number' && size > 1) {
209209
return new TypedArrayDict[type](size).fill(BigInt(data));
210210
}

0 commit comments

Comments
 (0)