-
Notifications
You must be signed in to change notification settings - Fork 732
Add CastInt64ToInt32Pass #5842
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
Add CastInt64ToInt32Pass #5842
Conversation
Integer placeholders, for example in this examples x = torch.Tensor([1.]) + 1 Are by default lowered as int64 tensors. As int64 is not a valid TOSA dtype, we cast these tensors to int32. Reference: https://www.mlplatform.org/tosa/tosa_spec.html#_supported_number_formats Signed-off-by: Erik Lundell <erik.lundell@arm.com> Change-Id: Ice59625b7fd68ff3a544ee4648fe05f69b9333e6
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5842
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 6b95253 with merge base 20a157f ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
CI issues? |
digantdesai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
|
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Can't tell why the arm-backend job is failing, seems like infra issue, because FVP returned 0. Let me rerun it. |
|
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@digantdesai merged this pull request in 28c9548. |
Integer placeholders, for example in this examples x = torch.Tensor([1.]) + 1
Are by default lowered as int64 tensors.
As int64 is not a valid TOSA dtype, we cast these
tensors to int32.
Reference:
https://www.mlplatform.org/tosa/tosa_spec.html#_supported_number_formats
Change-Id: Ice59625b7fd68ff3a544ee4648fe05f69b9333e6