Skip to content

Conversation

@Erik-Lundell
Copy link
Collaborator

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

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
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 3, 2024

🔗 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 (image):

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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 3, 2024
@Erik-Lundell Erik-Lundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Oct 3, 2024
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 3, 2024
@digantdesai
Copy link
Contributor

CI issues?

@zingo
Copy link
Collaborator

zingo commented Oct 3, 2024

Yes it was caused by the Pythorch 2.5->2.6 update that was merged yesterday
Fix is here #5843
See #5832 for more info.
e.g. sigmoid errors is unrelated to this PR

Copy link
Contributor

@digantdesai digantdesai left a comment

Choose a reason for hiding this comment

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

Thanks.

@facebook-github-bot
Copy link
Contributor

@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@digantdesai
Copy link
Contributor

Can't tell why the arm-backend job is failing, seems like infra issue, because FVP returned 0. Let me rerun it.

@facebook-github-bot
Copy link
Contributor

@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@digantdesai merged this pull request in 28c9548.

@Erik-Lundell Erik-Lundell deleted the cast-int64 branch October 10, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants