-
Notifications
You must be signed in to change notification settings - Fork 47
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
Include output operand type/rank in op constraint tables #789
base: main
Are you sure you want to change the base?
Include output operand type/rank in op constraint tables #789
Conversation
Not referenced normatively, but helpful at-a-glance information. This should be redundant with existing per-op documentation.
@fdwr is this about what you were thinking? |
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.
So fast - thanks Josh.
Co-authored-by: Dwayne Robinson <[email protected]>
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.
👍
@fdwr - one more look? I think we crossed the streams and you reviewed just before my last commit went in. |
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.
😎
<tr> | ||
<td>*output*</td> | ||
<td>[=/same type as|same as=] {{trueValue}}</td> | ||
<td>maximum of {{trueValue}}'s [=MLOperand/rank=] and {{falseValue}}'s [=MLOperand/rank=]</td> |
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.
condition
's rank should also be included according to the algorithm step
1. Set |outputShape| to the result of [=bidirectionally broadcasting=] |condition|'s [=MLOperand/shape=] and |outputShape].
BTW, there is a typo of "|outputShape]" in the algorithm step, it should be "|outputShape|".
<td>maximum of {{trueValue}}'s [=MLOperand/rank=] and {{falseValue}}'s [=MLOperand/rank=]</td> | |
<td>maximum of {{condition}}'s [=MLOperand/rank=], {{trueValue}}'s [=MLOperand/rank=] and {{falseValue}}'s [=MLOperand/rank=]</td> |
Not referenced normatively, but helpful at-a-glance information. This should be redundant with existing per-op documentation.
As discussed in #657 (comment)
Preview | Diff