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

fix: tf backend get_item and add set_item #28823

Merged
merged 6 commits into from
Sep 17, 2024
Merged

fix: tf backend get_item and add set_item #28823

merged 6 commits into from
Sep 17, 2024

Conversation

Sam-Armstrong
Copy link
Contributor

@Sam-Armstrong Sam-Armstrong commented Sep 15, 2024

Fixes ivy.get_item with a tensorflow backend in the case that the query passed is a multi-dimensional tensor.

Comment on lines -186 to -187
except IndexError:
raise
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove this so the backend implementation can be called, which handles an IndexError when the query is a multi-dimensional tensor

@Sam-Armstrong
Copy link
Contributor Author

@hmahmood24 does this look ok?

Copy link
Contributor

@hmahmood24 hmahmood24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sam-Armstrong Looks good! get_item is a critical function used everywhere so might be good to keep this on a separate branch and rerunning the integration tests from this branch to see this change doesn't break any other case and then merge into main. What do you think?

@Sam-Armstrong Sam-Armstrong changed the title fix: tf backend get_item for tensor queries fix: tf backend get_item and add set_item Sep 17, 2024
Co-authored-by: ivy-dev-bot <[email protected]>
@Sam-Armstrong Sam-Armstrong merged commit f5cc3e8 into main Sep 17, 2024
1 of 5 checks passed
@Sam-Armstrong Sam-Armstrong deleted the get-item branch September 17, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants