Skip to content

Commit

Permalink
Fix webgl size16
Browse files Browse the repository at this point in the history
  • Loading branch information
axinging committed Jan 29, 2024
1 parent de6c08a commit b9c9fe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/web/lib/onnxjs/tensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ function sizeof(type: Tensor.DataType): number {
return 1;
case 'int16':
case 'uint16':
case 'float16':
return 2;
case 'int32':
case 'uint32':
Expand Down

0 comments on commit b9c9fe2

Please sign in to comment.