KEMBAR78
[foreach] check for empty tensors before dispatching to MTA by janeyx99 · Pull Request #109550 · pytorch/pytorch · GitHub
Skip to content

Conversation

@janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented Sep 18, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 18, 2023

janeyx99 added a commit that referenced this pull request Sep 18, 2023
ghstack-source-id: 1485d81
Pull Request resolved: #109550
janeyx99 added a commit that referenced this pull request Sep 19, 2023
ghstack-source-id: 5fb2033
Pull Request resolved: #109550
@janeyx99 janeyx99 changed the title [does not build] check for empty tensors [foreach] check for empty tensors before dispatching to MTA Sep 19, 2023
@janeyx99 janeyx99 added the topic: bug fixes topic category label Sep 19, 2023
janeyx99 added a commit that referenced this pull request Sep 20, 2023
ghstack-source-id: 2c060e4
Pull Request resolved: #109550
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); \
Copy link
Contributor Author

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

janeyx99 added a commit that referenced this pull request Sep 21, 2023
ghstack-source-id: 4125e95
Pull Request resolved: #109550
@janeyx99 janeyx99 marked this pull request as draft September 21, 2023 16:01
@janeyx99
Copy link
Contributor Author

Marking this as draft as we target landing #109402 first.

@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Nov 20, 2023
@janeyx99
Copy link
Contributor Author

This is no longer necessary and has now been fixed.

@janeyx99 janeyx99 closed this Nov 20, 2023
@facebook-github-bot facebook-github-bot deleted the gh/janeyx99/92/head branch December 21, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant