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

feat: add the tpu support to torch backend #28569

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samthakur587
Copy link
Contributor

added the tpu support to torch backend

in this PR i have made some changes that required to support the torch_xla but i haven't test this in local on tpu environment to catch all the error.

Closes #28445

Checklist

  • Did you add a function?
  • Did you add the tests?
  • Did you run your tests and are your tests passing?
  • Did pre-commit not fail on any check?
  • Did you follow the steps we provided?

Copy link
Contributor

@vedpatwardhan vedpatwardhan left a comment

Choose a reason for hiding this comment

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

Hey @samthakur587, there seem to be a few failures arising as a result of these changes, for e.g. this import would have to be added in a try-except. Could you also please check if the same can be enabled in the other backends as well? Thanks for looking into this 😄

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.

Adding a demo for transpiling torch models to jax and use it on a TPU
3 participants