onnxruntime
1c86fd3c - Fix normalizeAxis impossible range check in JS utilities

Commit
49 days ago
Fix normalizeAxis impossible range check in JS utilities The condition 'axis < -tensorRank && axis >= tensorRank' is always false (a number cannot simultaneously be less than -r and >= r). Changed to '||' so out-of-range axes are properly rejected. Affects both onnxjs and jsep utility implementations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
Parents
Loading