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 46 forks source link

[WebGL2] 2D dimensions shapes are not supported #111

Closed Christywl closed 5 years ago

Christywl commented 5 years ago

Test Env: Chromium Version : nightly build 65.0.3324.0 (revision 81edd55) OS : Mac OS webml-polyfill: commit ee18609

Expected Result: Support the 2D shapes

Actual Result: 2D dimensions shapes are not supported:

Error: the shape 2,3 is not supported Error: the shape 52,230 is not supported Error: the shape 212,60 is not supported Error: the shape 1,4 is not supported Error: the shape 2,5 is not supported
How to reproduce:

  1. Launch chromium and disable the WebML
  2. Run tests: Access to https://brucedai.github.io/nt/test/cts-all.html?backend=webgl2

    • check result for Concat float example/1
    • check result for Concat float example/2
    • check result for Concat float example/3
    • check result for Softmax float example/1
    • check result for Softmax float example/2
Wenzhao-Xiang commented 5 years ago

Support 2D shapes for ops "concatenation" and "pool". But I'm not sure if there are any problems with other ops. Does the case exist that the input of ops "convolution" is 2D?

huningxin commented 5 years ago

I understand the conv op is only for 4D tensor. Correct me if I am wrong.