-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[HEXAGON] Slice ops added - add, subtract, multiply #11529
[HEXAGON] Slice ops added - add, subtract, multiply #11529
Conversation
@trahman-quic please fix the lint issue. |
tests/python/contrib/test_hexagon/test_add_subtract_multiply.py
Outdated
Show resolved
Hide resolved
6fb6b0a
to
f90a664
Compare
f90a664
to
009e536
Compare
Hi @mehrdadh, looks like my PR passed all the checks. Is it good to merge now? |
let's wait for this(#11613) and rerun this PR |
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.
Overall looks good. I added few comments
@@ -0,0 +1,230 @@ | |||
# Licensed to the Apache Software Foundation (ASF) under one |
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.
please move this file to tests/python/contrib/test_hexagon/topi/
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.
Done
tests/python/contrib/test_hexagon/test_add_subtract_multiply.py
Outdated
Show resolved
Hide resolved
python/tvm/topi/hexagon/utils.py
Outdated
|
||
|
||
def n11c_1024c_1d(n, h, w, c): | ||
"""Return index map for n11c_1024 1d layout""" |
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.
@mehrdadh I am having the same lint error about argument variable "w" here as well.
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.
since these are utility functions, it would be great if you can use better naming.
output_transformed_layout = get_layout_transform_fn(output_layout) | ||
s.transform_layout(block, buffer=("write", 0), index_map=output_transformed_layout) | ||
|
||
n, h, w, c = s.get_loops(block) |
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.
@mehrdadh lint error is complaining about the variable name "w". It's not complaining about "n" or "h" or "c". Is it a reasonable error? Is there a way to stick to these simple(single letter) variable names?
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.
you're right. we might need to add pylint disable in this file.
db9be6b
to
1744403
Compare
1744403
to
188fe44
Compare
87b5dc4
to
1a9e0eb
Compare
Hi @mehrdadh, I merged main branch into my branch and the hexagon tests are passing now. But now it's failing on a QEMU test. Could you please give me some ideas on what might be causing this? |
@trahman-quic I think this was resolved. Could you rebase and push to run the job? |
1a9e0eb
to
6bacd64
Compare
6bacd64
to
6bc4d4a
Compare
Hi @mehrdadh, all the tests are passing now. Pinging you to see if it is good to merge now. |
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.
LGTM, thanks!
@trahman-quic PR is merged now, thanks! |
* [UPSTREAM][HEXAGON] Slice ops added - add, subtract, multiply * Change to v68 * Change transform_numpy function call * Do not disbale pylint errors and fix them * Fix variable names * Move the test file to topi * Resolve conflict * Modify init
Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.
cc @mehrdadh