Arm backend: Update more node visitors to support TOSA 1.0#10425
Arm backend: Update more node visitors to support TOSA 1.0#10425zingo merged 20 commits intopytorch:mainfrom
Conversation
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
🔗 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 FailuresAs of commit c1633ed with merge base d31ef13 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Yes, good catch!
….0 (#10425) Relanding Differential Revision: [D73642292](https://our.internmc.facebook.com/intern/diff/D73642292/) [ghstack-poisoned]
….0 (#10425) Relanding Differential Revision: [D73642292](https://our.internmc.facebook.com/intern/diff/D73642292/) ghstack-source-id: 280313780 Pull Request resolved: #10479
….0 (#10425) (#10504) Relanding Differential Revision: [D73642292](https://our.internmc.facebook.com/intern/diff/D73642292/) ghstack-source-id: 280313780 Pull Request resolved: #10479
Summary
Updates more node visitors to support TOSA 1.0 specification.
Test plan
Tested through public and internal CI.
cc @digantdesai @freddan80 @per @zingo