intel / webml-polyfill

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

[MPS] Mobilenet v2(Onnx) example works abnormally on Mac #348

Closed Christywl closed 5 years ago

Christywl commented 5 years ago

Test Env: Chromium Version: nightly build 70.0.3503.0 (9012a59) Platform: Mac OS 10.13.6

Expected Result: Mobilenet v2(Onnx) example works fine.

Actual Result: MobileNet v2(Onnx) example works abnormally on Mac. When choosing Mobilenet v2(Onnx)+MPS, the box is stuck on "Setting...". If changing MPS to BNNS, the "Failed to setup MPS backend" exception continuously alerts. In devtools console: Uncaught (in promise) DOMException: finishfails: 4

screen shot 2018-11-29 at 2 28 58 pm screen shot 2018-11-29 at 2 29 44 pm

How to Reproduce:

  1. Launch chromium and visit https://brucedai.github.io/nt/examples/image_classification/index.html
  2. Select Mobilenet v2(Onnx)
pinzhenx commented 5 years ago

Closed via https://github.com/intel/webml-polyfill/pull/469

Christywl commented 5 years ago

This issue was fixed with the examples codes https://github.com/intel/webml-polyfill/commit/c261a0afcd9e31e131a6dfa1ed9985abfdda375b.