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: torch.Tensor.to frontend failing with certain arg/kwarg combinations #28477

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

Sam-Armstrong
Copy link
Contributor

@Sam-Armstrong Sam-Armstrong commented Mar 4, 2024

The frontend to method currently fails when passed the args (not kwargs) (None, dtype) which works fine for native torch. Here I generalise the torch.Tensor.to frontend to fix this problem, and also fix the tests for all backends aside paddle.

@Sam-Armstrong Sam-Armstrong self-assigned this Mar 4, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Issue Reference

In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our contributing guide and our PR template.
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

@ivy-leaves ivy-leaves added the PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist label Mar 4, 2024
Copy link
Contributor

@Ishticode Ishticode left a comment

Choose a reason for hiding this comment

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

lgtm :)

@Sam-Armstrong Sam-Armstrong merged commit 2f37a56 into ivy-llc:main Mar 5, 2024
266 of 281 checks passed
@Sam-Armstrong Sam-Armstrong deleted the fix-torch-to branch March 5, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants