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

[MPS] support operators reordering #232

Open huningxin opened 5 years ago

huningxin commented 5 years ago

MPS backend will fail to execute a graph if the operators are not added in execution order. It is the case in simple example: https://github.com/intel/webml-polyfill/blob/c15fe15de6d2426930e0062c79321432b53b4869/examples/simple/SimpleModel.js#L67

It adds MUL op before two ADD ops.

huningxin commented 5 years ago

MPSNNGraph should support reordering of ops.