Skip to content
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

Add index_select AIT converter #947

Closed
wants to merge 3 commits into from

Conversation

aakhundov
Copy link
Contributor

Summary: index_select op has been available in AIT for a while, but we never had an fx2ait converter for it. This diff adds one.

Differential Revision: D50119460

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 10, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D50119460

aakhundov and others added 3 commits October 10, 2023 04:35
Summary:
Previously with the `permute` ops, we could have run into an edge case when the input to the permute op is a model input. Apparently, zero-size PT tensors return `nullptr` as `.data_ptr()`. This has led to an error in the permute ops' back-end which validates the input pointers to be non-NULL.

In this diff, an early exit condition is added to all permute ops' back-end before the input pointer validation. This remediates the error from the edge case described above.

Differential Revision: https://internalfb.com/D50118462

fbshipit-source-id: c68a5e84ab046856cde0c698c32aa8475acae90e
Summary: ATT

Differential Revision: D50120201

fbshipit-source-id: 5d893dfad346418f274a28a638193aa2bd2fe848
Summary:
Pull Request resolved: facebookincubator#947

`index_select` op has been [available](https://github.com/facebookincubator/AITemplate/blob/main/python/aitemplate/compiler/ops/tensor/index_select.py) in AIT for a while, but we never had an fx2ait converter for it. This diff adds one.

Differential Revision: D50119460

fbshipit-source-id: ba4331ce124a08fe46b7c90b90aa58c412da4981
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D50119460

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9452d5c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants