-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[foreach] check for empty tensors before dispatching to MTA #109550
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
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
| auto scalars = convert_tensor_to_scalar_list(scalars_, input.size()); \ | ||
| check_foreach_api_restrictions(input, tensors1, tensors2, scalars); \ | ||
| std::pair<bool, bool> p = \ | ||
| can_use_fast_route({input, tensors1, tensors2}, scalars); \ |
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.
Note that I've added scalars to the can_use_fast_route call here. I'm pretty sure this should have been added before but want to confirm with @crcrpar
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
Marking this as draft as we target landing #109402 first. |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
This is no longer necessary and has now been fixed. |
Stack from ghstack (oldest at bottom):