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

[clDNN] clDNN doesn't fully support broadcasting #317

Open Christywl opened 5 years ago

Christywl commented 5 years ago

Test Env: Chromium Version: nightly build 70.0.3503.0 (16d3dad) Platform: Windows/Linux

Expected Result: Broadcasting works well on clDNN backend.

Actual Result: Broadcasting partially works on clDNN backend.

[9458:9571:0330/111642.718896:ERROR:execution_impl_cl_dnn.cc(24)] [clDNN] failed to allocate network -1 /home/nhu/code/clDNN/src/eltwise.cpp at line: 212
Error has occured for: 3
Broadcast sizes sizes: [b:1, f:2, x:2, y:3, z:1]
input1 sizes sizes: [b:1, f:1, x:1, y:2, z:1]
All Broadcast sizes dimensions must be dividable by corresponding dimensions from input1 sizes
Mismatching dimensions: Spatial y
Input tensors are not broadcastable to the same shape

How to Reproduce:

  1. Launch chromium and enable WebML flag
  2. Visit

huningxin commented 5 years ago

@Christywl , please help identify the test cases for ADD/MUL broadcasting?

Christywl commented 5 years ago

@huningxin , the urls for the failed tests: