Skip to content
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

[TOSA] TOSA updates for LLVM hash 6d847b1 #4072

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justin-ngo-arm
Copy link
Contributor

@justin-ngo-arm justin-ngo-arm commented Mar 3, 2025

Commit 1: [TOSA] Update tosa.transpose's perms as attributes

  • Update tosa.transpose's perms to attributes according to TOSA 1.0
  • Update LIT tests

Commit 2: [TOSA] Rename ReduceProd to ReduceProduct

  • Update ReduceProd name to ReduceProduct in align with TOSA 1.0 spec

Commit 3: [TOSA] Change PadOp's pad_const to rank 1

  • Require PadOp's pad_const to be rank 1 in align with TOSA 1.0 spec

Commit 4: [TOSA] Generate correct parameters for conv ops

  • Bug fix: According to TOSA spec
    (https://www.mlplatform.org/tosa/tosa_spec.html#_conv2d), full height and width values must be divisible by stride values. This commit adds checks for that divisibility and modifies pad values and/or slices input to generate TOSA-compliant parameters for convolution ops.

Commit 5: [TOSA] Update LIT tests and e2e results

Commit 1: [TOSA] Update tosa.transpose's perms as attributes

* Update tosa.transpose's `perms` to attributes according to TOSA 1.0
* Update LIT tests

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: Ica81298db8acaf15e1e29e41cffa1f70e726ad5c

Commit 2: [TOSA] Rename ReduceProd to ReduceProduct

Update ReduceProd name to ReduceProduct in align with TOSA 1.0 spec

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: Ia285ac013ea8b57021f72a2c3b46e3ac33c07750

Commit 3: [TOSA] Change PadOp's pad_const to rank 1

Require PadOp's pad_const to be rank 1 in align with TOSA 1.0 spec

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: Ic51d9ac2544a6c12234afc5208f08efced9dd124

Commit 4: [TOSA] Generate correct parameters for conv ops

Bug fix: According to TOSA spec
(https://www.mlplatform.org/tosa/tosa_spec.html#_conv2d), full height
and width values must be divisible by stride values. This commit adds
checks for that divisibility and modifies pad values and/or slices
input to generate TOSA-compliant parameters for convolution ops.

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: I6341450c324ec5d58907acc3c711614f24343a73

Commit 5: [TOSA] Update LIT tests and e2e results

Signed-off-by: Justin Ngo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant