-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Clarify cond
to If
must contain a single element
#5617
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
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
cond
to If
must contain a single elementcond
to If
must contain a single element
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.
Is it worthy to add such a check (required single element for cond) in shape inference? Not sure whether it will break any existing usage tho.
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 for the update.
I created an issue #5622 to discuss the other aspect (whether the shape of the condition is required to be empty or if it can be anything, also in general for this and other similar ops).
But this seems fine for now.
Since the shape may be unknown I am not sure if the check is robust. I can do this as a follow up. Thanks! |
Description
Clarify
cond
toIf
must contain a single element. Previously it is unclear what the condition can be.Fix reference runtime accordingly.
Motivation and Context
Fixes #5520