onnxruntime
99ae86b5 - [WebNN] Fix bug in quantizeLinear and dequantizeLinear (#25931)

Commit
245 days ago
[WebNN] Fix bug in quantizeLinear and dequantizeLinear (#25931) ### Description In latest WebNN spec, it requires the `scale` and `zeroPoint` rank to be same as the input rank for `quantizeLinear` and `dequantizeLinear` operators. ### Motivation and Context This PR adjusts the shape of scale and zeroPoint by appending or prepending 1s to their dimensions if they are not equal to the input rank to align with the latest spec. BTW, this PR also fixes some nits and makes some code improvement.
Author
Parents
Loading