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

Replace linear transformation with low and high in test inputs #1485

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

ramiro050
Copy link
Collaborator

This commit replaces test inputs that were being linearly transformed by multiplying and adding/subtracting to the input tensor with inputs that use the low and high keyword arguments instead.

Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

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

LGTM! But the CI is failing, you need to fix the test.

@ramiro050
Copy link
Collaborator Author

LGTM! But the CI is failing, you need to fix the test.

Yeah, i'm currently investigating it. Seems like a lack of precision issue

This commit replaces test inputs that were being linearly transformed
by multiplying and adding/subtracting to the input tensor with inputs
that use the `low` and `high` keyword arguments instead.
@ramiro050
Copy link
Collaborator Author

I've made the range for the gelu test to be from -0.5 to 0.5 to make it pass. I've opened an issue #1497 to track the precision error, since that problem is outside the scope of this PR.

@ramiro050 ramiro050 merged commit 86095dd into llvm:main Oct 14, 2022
@ramiro050 ramiro050 deleted the fix-tests branch October 14, 2022 18:52
dellis23 pushed a commit that referenced this pull request Oct 25, 2022
…1485)

This commit replaces test inputs that were being linearly transformed
by multiplying and adding/subtracting to the input tensor with inputs
that use the `low` and `high` keyword arguments instead.
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