-
Notifications
You must be signed in to change notification settings - Fork 18
Support latest spec #238
Support latest spec #238
Conversation
1. Support MLOperandDataType 2. Support shape() and dataType() of MLOperand 3. Remove autoPad option of conv2d/convTranspose2d/Pool2d operations 4. Drop sync APIs 5. Drop null value of newShape for reshape 6. Drop squeeze operation 7. Drop MLBufferView Besides, updated links and corrected some outputShape of tests
@huningxin I've summitted new commits to address your comments. Please take another look, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comment for padding, others LGTM, thanks!
@huningxin Updated. Please take another review, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks much @BruceDai !
@Honry , do you have any further comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍, have you tested it with webnn-samples?
@Honry Yes, I verified update webnn-polyfill.js by locally running our WebNN Samples by Wasm and WebGL backends. Most samples can run correctly except an error "Kernel 'Complex' not registered for backend 'wasm'" happened for Noise Suppression (NSNet2) sample which is an open issue tensorflow/tfjs#5440 for tensorflow.js. |
@BruceDai, super cool! Thank you for your great effort! Looking forward to new release. |
@huningxin @Honry Thanks for reviewing. I'm going to merge it. |
Let me firstly apologize for this large PR. It includes below changes to align with latest WebNN API Spec.
@huningxin @Honry PTAL, thanks.