[Web] Allow passing Uint8ClampedArray to ort.Tensor() #21753
Labels
ep:WebGPU
ort-web webgpu provider
platform:web
issues related to ONNX Runtime web; typically submitted using template
Describe the issue
ort.Tensor()
does not accecptUint8ClampedArray
and will result with an error. One must explicitly covert toUint8Array
as innew ort.Tensor(Uint8Array.from(clamped))
. This defied my expectation to be able to use either.To reproduce
new ort.Tensor(new Uint8ClampedArray(1))
Urgency
not urgent
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
https://cdn.jsdelivr.net/npm/[email protected]/dist/esm/ort.webgpu.min.js
Execution Provider
'webgpu' (WebGPU)
The text was updated successfully, but these errors were encountered: