Skip to content

[TOSA] Add TosaLayerwiseConstantFoldPass and TosaReduceTransposes passes#4165

Merged
sjarus merged 1 commit into
llvm:mainfrom
justin-ngo-arm:add-tosa-passes
Apr 28, 2025
Merged

[TOSA] Add TosaLayerwiseConstantFoldPass and TosaReduceTransposes passes#4165
sjarus merged 1 commit into
llvm:mainfrom
justin-ngo-arm:add-tosa-passes

Conversation

@justin-ngo-arm

Copy link
Copy Markdown
Contributor

Add the following passes to TorchBackendToTosaBackendPipeline:

  • TosaLayerwiseConstantFoldPass: fold full-layer operations on TOSA consts
  • TosaReduceTransposes: remove unnecessary TOSA transposes to reduce data movements

Add the following passes to TorchBackendToTosaBackendPipeline:
- TosaLayerwiseConstantFoldPass: fold full-layer operations on TOSA
  consts
- TosaReduceTransposes: remove unnecessary TOSA transposes to reduce
  data movements

Signed-off-by: Justin Ngo <justin.ngo@arm.com>
Change-Id: I44636a7392a571e57c2c3a2c0316835d2d2ca938

@sahas3 sahas3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, except for the timeout comment. I am not sure if increasing the timeout for all conversion paths is acceptable.

Comment thread projects/pt1/e2e_testing/xfail_sets.py
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.

3 participants