-
Notifications
You must be signed in to change notification settings - Fork 608
Add lift constant tensors passes after aten_to_edge #359
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D49207492 |
6867190
to
467086f
Compare
This pull request was exported from Phabricator. Differential Revision: D49207492 |
8eeed94
to
b28754a
Compare
This pull request was exported from Phabricator. Differential Revision: D49207492 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D49207492 |
…09382) Summary: X-link: pytorch/executorch#359 When exporting using enable_aot (through the torch.export path), we want to lift all constant tensors as buffers to the exported program. The ScalarToTensor pass in EXIR's aten_to_edge passes will create some constant tensors in the graph, so we will need to run a lift_constant_tensors pass afterwards. Note that this only needs to be applied when exporting using the torch.export path because in the original path, nothing is lifted. Test Plan: CI Reviewed By: cccclai Differential Revision: D49207492
Summary: X-link: pytorch/pytorch#109382 When exporting using enable_aot (through the torch.export path), we want to lift all constant tensors as buffers to the exported program. The ScalarToTensor pass in EXIR's aten_to_edge passes will create some constant tensors in the graph, so we will need to run a lift_constant_tensors pass afterwards. Note that this only needs to be applied when exporting using the torch.export path because in the original path, nothing is lifted. Reviewed By: cccclai Differential Revision: D49207492
b28754a
to
26dcb20
Compare
This pull request was exported from Phabricator. Differential Revision: D49207492 |
This pull request has been merged in e03bd6c. |
Summary: X-link: pytorch/executorch#359 When exporting using enable_aot (through the torch.export path), we want to lift all constant tensors as buffers to the exported program. The ScalarToTensor pass in EXIR's aten_to_edge passes will create some constant tensors in the graph, so we will need to run a lift_constant_tensors pass afterwards. Note that this only needs to be applied when exporting using the torch.export path because in the original path, nothing is lifted. Test Plan: CI Differential Revision: D49207492 Pull Request resolved: #109382 Approved by: https://github.com/cccclai
Summary:
When exporting using enable_aot (through the torch.export path), we want to lift all constant tensors as buffers to the exported program. The ScalarToTensor pass in EXIR's aten_to_edge passes will create some constant tensors in the graph, so we will need to run a lift_constant_tensors pass afterwards.
Note that this only needs to be applied when exporting using the torch.export path because in the original path, nothing is lifted.
Differential Revision: D49207492