-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix for 509 #510
Fix for 509 #510
Conversation
…nd makes the operation sequential
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.
Logic looks good to me, just some requests for comments.
@@ -350,21 +350,21 @@ def compute_launch_shape( | |||
partitions: dict[PartSym, PartitionBase], | |||
all_outputs: set[Store], | |||
unbound_ndim: Optional[int], | |||
) -> Optional[Shape]: | |||
) -> Tuple[Optional[Shape], bool]: |
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 would add a comment to this now explaining what the boolean return value is.
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.
launch_shape, done = self.compute_launch_shape( | ||
result, all_outputs, unbound_ndim | ||
) | ||
if can_retry and not done: |
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.
This is a bit of tricky logic that could use 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.
No description provided.