Describe the issue
The Float16Array has been enabled by default in latest Chrome Canary, in ort-web, the float16 data type will be map to Float16Array at here now, while we are still using Uint16Array as workaround input data, thus the code will go into following exception.
tensor-impl.ts:265 Uncaught (in promise) TypeError: A float16 tensor's data must be type of function Float16Array() { [native code] }
at new Tensor (tensor-impl.ts:265:19)
This would break all apps that are still using Uint16Array as workaround for float16, shall we accept both Uint16Array and Float16Array for a period of time?
@fs-eire, @guschmue
To reproduce
Create ORT float16 CPU tensor with Uint16Array data:
new ort.Tensor('float16', new Uint16Array([0]), [1]);
Urgency
No response
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.20.1
Execution Provider
'wasm'/'cpu' (WebAssembly CPU)
Describe the issue
The
Float16Arrayhas been enabled by default in latest Chrome Canary, in ort-web, thefloat16data type will be map toFloat16Arrayat here now, while we are still usingUint16Arrayas workaround input data, thus the code will go into following exception.This would break all apps that are still using
Uint16Arrayas workaround forfloat16, shall we accept bothUint16ArrayandFloat16Arrayfor a period of time?@fs-eire, @guschmue
To reproduce
Create ORT float16 CPU tensor with Uint16Array data:
new ort.Tensor('float16', new Uint16Array([0]), [1]);Urgency
No response
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.20.1
Execution Provider
'wasm'/'cpu' (WebAssembly CPU)