-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Test calculation output shape for Broadcast op, relax restrictions for partially dynamic input data #1247
Test calculation output shape for Broadcast op, relax restrictions for partially dynamic input data #1247
Conversation
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.
I haven't looked through all tests. However after review of spreadsheet with matrix of cases we came to conclusion we should clarify the resulting shapes.
My understanding is that, we should leverage as much as possible information available from target_shape
input in case of numpy
and explicit
broadcasting rules, which I'd like to emphasize are uni-directional modes.
const bool is_output_rank_static = | ||
output_shape.rank().is_static() && output_shape[0].is_static(); |
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.
The variable name is misleading. The conditions are more restrictive than the variable name. In fact they boil down to output_shape.is_static()
- since you've already enforced 1D target shape and is_static
function checks whether partial shape rank is static as well as all of its dimensions.
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.
right, I changed it to is_target_shape_known
You are right. I've changed rules for |
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.
Just few typos.
Co-authored-by: Adam Osewski <[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.
I have a brief look at the changes. Please, fix some minor comments.
…r partially dynamic input data (openvinotoolkit#1247)
…r partially dynamic input data (openvinotoolkit#1247)
Tested combinations from CVS-31915