webmachinelearning / webnn-polyfill

🧠⚙️ Web Neural Network API polyfill based on TensorFlow.js
https://www.npmjs.com/package/@webmachinelearning/webnn-polyfill
Apache License 2.0
102 stars 18 forks source link

Support async/sync functions #172

Closed BruceDai closed 1 year ago

BruceDai commented 2 years ago

In first commit, I just updated add op tests using Async function. @huningxin PTAL, thanks.

BruceDai commented 2 years ago

Thanks @huningxin. I updated commit to address your comments, please take another look. My second commit of updated other tests will be summitted later to fix CI failure.

BruceDai commented 2 years ago

Thanks @huningxin ! I've added these checks, and verified by running local WPT IDL tests in worker with WebNN-Polyfill. Please take another look, thanks.

BruceDai commented 2 years ago

@huningxin I've update this patch to address your comments, and added a sample by relu op test for invoking sync functions in worker, please take another look, thanks.

BruceDai commented 2 years ago

@Honry I've update PR, please take another review, thanks.

BruceDai commented 1 year ago

Thanks @Honry and @huningxin for your reviewing. I will merge this PR.