-
Notifications
You must be signed in to change notification settings - Fork 52
Add rankRange to opSupportLimits() #828
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
Conversation
Add rankRange to opSupportLimits() by renaming MLSupportLimits to MLDataTypeLimits (still used for inputs, constants, and output operands), and deriving MLTensorLimits (used for tensor operands) which adds the new member as a MLRankRange dictionary. This also adds a note about an operand's allowed data types and ranks, indicating the implementations may extend or impose limits. Finally, maxTensorByteLength is exposed at the top level of the dictionary.
|
Ready for review, I think. Please take a look? |
fdwr
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.
A few thoughts good sir. 🔍
fdwr
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.
👍
|
Thanks @fdwr ! This should still match the Chromium implementation at least as far as what's web-observable, even if the IDL differs somewhat. The discussion around whether or how to represent output tensors is still unresolved; two options:
Preferences? |
Incremental progress? |
huningxin
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!
|
I opened #835 to capture the output tensor discussion. So... good to merge this as-is? |
SHA: 963437c Reason: push, by fdwr Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Add rankRange to opSupportLimits() by renaming MLSupportLimits to MLDataTypeLimits (still used for inputs, constants, and output operands), and deriving MLTensorLimits (used for tensor operands) which adds the new member as a MLRankRange dictionary.
This also adds a note about an operand's allowed data types and ranks, indicating the implementations may extend or impose limits.
In addition, maxTensorByteLength is added to the MLOpSupportLimits dictionary.
Based on the work in Chromium by Reilly Grant, Wei Wang, and Junwei Fu.
Resolves #456
Preview | Diff