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

[LTC] Adopt even more LazyTensor interfaces #4317

Merged
merged 8 commits into from
Dec 13, 2022

Conversation

alanwaketan
Copy link
Collaborator

@alanwaketan alanwaketan commented Dec 12, 2022

Summary:
This patch adopts even more LazyTensor interfaces:

  1. Reuse TryLimitGraphSize and CreateTensorNode directly.
  2. Override size, ToTensor, dtype, ApplyPendingGraph, AssignIrValue, and GetIrValueForTensor.

It depends on pytorch/pytorch#90686.

Test Plan:
CI.

@alanwaketan
Copy link
Collaborator Author

Thanks, Jack.

pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Dec 13, 2022
Summary:
Make some LazyTensor interfaces virtual such that XLA can adopt. It's related to pytorch/xla#4317.

Test Plan:
CI.
Pull Request resolved: #90686
Approved by: https://github.com/antoniojkim, https://github.com/JackCaoG
This reverts commit 56ba08e.
@alanwaketan alanwaketan merged commit d1748e0 into master Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants