Skip to content

Arm backend: Convert assert to throw ValueError in op_sigmoid #9875

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

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

Sebastian-Larsson
Copy link
Collaborator

@Sebastian-Larsson Sebastian-Larsson commented Apr 3, 2025

Asserts are converted to proper raises to ensure graph integrity.

It should not be possible for sigmoid to have more than 1 input for a correctly formatted graph, but in the node visitor we cannot know for sure that the graph is formatted correctly.

torch.sigmoid supports more data types than fp32, which is why it should be checked.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Asserts are converted to proper raises to ensure graph integrity.

It should not be possible for sigmoid to have more than 1 input for a
correctly formatted graph, but in the node visitor we cannot know for
sure that the graph is formatted correctly.

torch.sigmoid supports more data types than fp32, which is why it should
be checked.

Change-Id: If90fda18ccedde16ed2448188c3b99f766a5c8b0
Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
Copy link

pytorch-bot bot commented Apr 3, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9875

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit 49e6693 with merge base 9e7b469 (image):

NEW FAILURES - The following jobs have failed:

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 Apr 3, 2025
@zingo zingo added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing labels Apr 3, 2025
@zingo zingo merged commit a884e92 into pytorch:main Apr 3, 2025
165 of 171 checks passed
@Sebastian-Larsson Sebastian-Larsson deleted the sigmoid_assert branch April 4, 2025 14:05
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
Asserts are converted to proper raises to ensure graph integrity.

It should not be possible for sigmoid to have more than 1 input for a
correctly formatted graph, but in the node visitor we cannot know for
sure that the graph is formatted correctly.

torch.sigmoid supports more data types than fp32, which is why it should
be checked.

Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
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. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants