intel / webml-polyfill

Deprecated, the Web Neural Network Polyfill project has been moved to https://github.com/webmachinelearning/webnn-polyfill
Apache License 2.0
161 stars 42 forks source link

[WASM] TRANSPOSE doesn't support non-4D tensor #1186

Closed Christywl closed 4 years ago

Christywl commented 4 years ago

Test Env: Chromium Version: nightly build 79.0.3917.0(2e4d91c) Platform: all

Expected Result: Tests should pass

Actual Result: TRANSPOSE doesn't support non-4D tensor TypeError: Incorrect number of tuple elements for array_int32_4: expected=4, actual=2

How to Reproduce: Visit: https://brucedai.github.io/webnnt/test/issue_transpose_2D.html?prefer=fast

Christywl commented 4 years ago

The tests still failed with the latest codes https://github.com/intel/webml-polyfill/commit/b563f945e5122af30efa8e7be0887598886892c1, the error is:

TypeError: perm.push is not a function

so reopen this issue, @akineeic please help check.

Christywl commented 4 years ago

This issue was fixed with https://github.com/intel/webml-polyfill/commit/4c89d552cb4db094f163c5e8ca2310ad45d97fa2.