-
Notifications
You must be signed in to change notification settings - Fork 212
[tests]Improved math tests and modified some file formats under test/python #535
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
base: main
Are you sure you want to change the base?
Conversation
# CHECK: return %{{.*}} | ||
# CHECK: } | ||
# CHECK: } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid unnecessary checks whenever possible.Pay attention to the aesthetics of the formatting; the following approach should look much nicer.
Here you should not use {{.*}}; you should capture the variable name.
# CHECK-LABEL: func @forward
# CHECK: %{{.*}} = math.erf
# CHECK: return %{{.*}}
# CHECK: }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave a few simple comments.
print(graph._imported_module) | ||
|
||
# CHECK: module { | ||
# CHECK-LABEL: func.func @forward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same goes for the test below; I think you can modify them together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your suggestion , I'll continue to improve this PR
@Old-cpu use rebase, don't use merge |
|
Let me give an example.
You should let it become.
|
I understand what you mean, I will modify it immediately |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# CHECK-LABEL: func.func @forward | ||
# CHECK: %[[cos:.*]] = math.cos | ||
# CHECK: return %[[cos]] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if you left two blank lines at the end—just one would suffice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if you left two blank lines at the end—just one would suffice.
Yes, I left two blank lines locally, but if I only leave one blank line, there will be no blank line when I submit it.
Please check the following error from the CI:
|
OK, it has been modified. Please review it when you have time. |
Improved math operation tests and modified the following file formats