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] Fix rsub; add clamp.Tensor, avg_pool1d, max_pool1d, prims.collapse #3855

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

justin-ngo-arm
Copy link
Contributor

@justin-ngo-arm justin-ngo-arm commented Nov 6, 2024

  • Fix aten.rsub.Scalar legalization with appropriate type casting
  • Add legalization for aten.clamp.Tensor
  • Resolve some unexpected test failures from PyTorch update by adding legalization for the following ops:
    • aten.avg_pool1d
    • aten.max_pool1d
    • torch.prims.collapse
  • Update xfail_sets with new e2e results
  • Add new LIT tests to basic.mlir

Change-Id: I9762c7d36ca0b0f75ca68d0c71d7f5d5309a96ad

…apse

- Fix aten.rsub.Scalar legalization with appropriate type casting
- Add legalization for aten.clamp.Tensor
- Resolve some unexpected test failures from PyTorch update by adding
legalization for the following ops:
  + aten.avg_pool1d
  + aten.max_pool1d
  + torch.prims.collapse
- Update xfail_sets with new e2e results
- Add new LIT tests to basic.mlir

Signed-off-by: Justin Ngo <justin.ngo@arm.com>
Change-Id: I9762c7d36ca0b0f75ca68d0c71d7f5d5309a96ad
@sjarus sjarus requested a review from sahas3 November 7, 2024 00:12
@sahas3
Copy link
Contributor

sahas3 commented Nov 7, 2024

@justin-ngo-arm, @sjarus -- As FYI please expect a bit delay in reviewing as I am traveling for work this week and the next. I'll review as soon as I get some time. Thanks!

Change torch.aten.uniform LIT test to check for tosa.const instead
of the random values generated to ensure the test works on different
platforms.

Signed-off-by: Justin Ngo <justin.ngo@arm.com>
@sjarus sjarus merged commit b6f04fa into llvm:main Nov 7, 2024
3 checks passed
@justin-ngo-arm justin-ngo-arm deleted the dev branch November 7, 2024 22:09
@justin-ngo-arm
Copy link
Contributor Author

Hi @dbabokin , I just added the fix to this PR which just got merged. Please let me know if this resolve your problem.

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