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] Add lowering for aten.expm1 #3949

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

Conversation

justin-ngo-arm
Copy link
Contributor

  • Add Torch to TOSA legalization for aten.expm1
  • Update xfail_sets with new test results
  • Add new LIT tests

Change-Id: I834d0c7416341f884612053aebf9fcc90bcb3b53

* Add Torch to TOSA legalization for aten.expm1
* Update xfail_sets with new test results
* Add new LIT tests

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: I834d0c7416341f884612053aebf9fcc90bcb3b53
@sjarus sjarus requested a review from sahas3 January 8, 2025 19:27
// If input is not a float type then cast it to result element type
auto selfElemTy = selfType.getElementType();
if (!isa<mlir::FloatType>(selfElemTy))
self = tosa::promoteType(rewriter, self, resultType);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know why there are tosaCastTensorToType and promoteType? tosaCastTensorToType seems to be a super-set of promoteType in terms of functionality -- so is there a need to maintain promoteType?

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.

2 participants