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

[webml/NNAPI] Add Error Handling #70

Open Christywl opened 6 years ago

Christywl commented 6 years ago

There is no error handling. For example, passing an invalid parameter should throw an error. Error handling should be defined. More invalid scenes: addOperation():

identifyInputsAndOutputs():

finish(): pass a parameter createCompilation(): call this function when the model is not being finished ...

How to Reproduce:

  1. Launch chromium and enable WebML flag
  2. Visit https://brucedai.github.io/nt/test/index-local.html?backend=nnapi
canxcao commented 6 years ago

Test case refer to Link (#80, #81).