-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add webnn slice tests #37072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add webnn slice tests #37072
Conversation
fb2ab9c to
bce8fcd
Compare
| } | ||
| }, | ||
| "starts": [2, 2], | ||
| "sizes": [2, 4], |
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.
It's interesting that WebNN chose starts and sizes, whereas other frameworks I'm familiar with chose starts and ends, which makes it easier to specify relative endpoints on both ends. That will require some massaging from frameworks to WebNN. Shrug, pro's/con's. (no action expected)
Also the slice asymmetry between start and end ranges for negative values is weird 🤨, but that's a spec oddity (https://www.w3.org/TR/webnn/#api-mlgraphbuilder-slice), and the code looks fine as-is, according to the current version of the spec anyway.
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.
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.
bce8fcd to
3da19a2
Compare
|
@Honry All checks passed, PTAL, thanks. |
Honry
left a comment
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!
@fdwr @Honry @huningxin @dontcallmedom PTAL, thanks.