Skip to content

Conversation

oscarandersson8218
Copy link
Collaborator

@oscarandersson8218 oscarandersson8218 commented Apr 24, 2025

Summary

Updates more node visitors to support TOSA 1.0 specification.

Test plan

Tested through public and internal CI.

cc @digantdesai @freddan80 @per @zingo

Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I5f3723cbeece66420a61031a6fb2de9f852bd39c
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I3a373871b2a6187d3b42e90ec3ca14da4034a225
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ic028ce92c3dd20df0b8e416a7a1584ed642c5b12
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I0b25308a298545f575c80fe0fd2ddab9139d214c
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ie589c3113a940898f773d1e2c10e161e052bf7ac
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Icb42299c2e1d2bf0ab7581d1ce925e8ad46ecf7e
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Iea00e770763ddc969e19e26c1c674de5fb2f36e8
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ia3235aa71652e019ed51452cd521d71c105eec70
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ib4c3ab90ea9fe902de8d6da4109927dfe81de1f2
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I4e40d7eed3812b23d0cfba2104b62cf4e3137cb5
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I7166219c9f3dc2fd62aea649455752b130af12ce
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: If808a7b82917ac5bc8de57c67ddaec630128e07b
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I4ad6a067d2cc0e810889d688ed4cb162ae3ff638
Adds support for where.self which maps to TOSA.SELECT.

Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I487dfd3621b198e9b2c779dc5f7f0fabe9854506
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ie7c6ac4fe2c6f78d1b529d73f5ad97fa3ef4693e
Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I1b00cac0aec8de1dff1b2a174f72446ca2410ced
Add support for AVG_POOL2D TOSA 1.0

Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ic778d4c0cb0cdafae366d36c995992d743200f9f
Add support for MAX_POOL2D TOSA 1.0

Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I3432622ede7b029e78ca8af5c9c71f17f551d4b3
Add support for PAD in TOSA 1.0. Also moves rewrites old constant_pad
tests.

Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: I653e27b68e89e6d30a57e027aa14c1d1732ad272
SIN and COS were introduced in TOSA 1.0. This patch adds support for
both. It also adds unittests for both ops.

Signed-off-by: Oscar Andersson <oscar.andersson@arm.com>
Change-Id: Ic5a71a677b06045c067c0990b2b7f04ca5e98e2b
Copy link

pytorch-bot bot commented Apr 24, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit c1633ed with merge base d31ef13 (image):
💚 Looks good so far! There are no failures yet. 💚

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 24, 2025
@oscarandersson8218 oscarandersson8218 added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing labels Apr 24, 2025
@zingo zingo merged commit 032ba6c into pytorch:main Apr 24, 2025
252 of 256 checks passed
jackzhxng added a commit that referenced this pull request Apr 24, 2025
@digantdesai
Copy link
Contributor

Yeah we don't have 1.0 internally yet, I can pull it in. I wanted to discuss with @per how this is going to evolve going forward, but we didn't sync yesterday :(

# pyre-unsafe
from typing import List

import serializer.tosa_serializer as ts # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be inside the class and it might work

inputs: List[TosaArg],
output: TosaArg,
) -> None:
import tosa_tools.v0_80.serializer.tosa_serializer as ts # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

want to move
from tosa_tools.v0_80.tosa.ResizeMode import ResizeMode here as well? Also do the same for v1.0 i.e. from tosa.ResizeMode import ResizeMode?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, good catch!

@oscarandersson8218
Copy link
Collaborator Author

Yeah we don't have 1.0 internally yet, I can pull it in. I wanted to discuss with @per how this is going to evolve going forward, but we didn't sync yesterday :(

I'm struggling to see how this is any different from #10390 with regards to TOSA 1.0. Is it the sin and cos which are causing the issues?

digantdesai added a commit that referenced this pull request Apr 25, 2025
facebook-github-bot pushed a commit that referenced this pull request Apr 26, 2025
….0 (#10425)

Differential Revision: D73642292

Pull Request resolved: #10479
kirklandsign pushed a commit that referenced this pull request Apr 26, 2025
….0 (#10425)

Relanding

Differential Revision: [D73642292](https://our.internmc.facebook.com/intern/diff/D73642292/)

ghstack-source-id: 280313780
Pull Request resolved: #10479
kirklandsign pushed a commit that referenced this pull request Apr 26, 2025
….0 (#10425) (#10504)

Relanding

Differential Revision: [D73642292](https://our.internmc.facebook.com/intern/diff/D73642292/)

ghstack-source-id: 280313780
Pull Request resolved: #10479
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.

4 participants