-
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
[Op] Do not override specified layout in pooling #9235
Conversation
* add part of operators * remove part of operators * add lookup * add test * Update paddlepaddle.py * modify error message for SAME padding * Remove some function and old version operator * Remove some function and old version operator * Remove some function and old version operator * Remove some function and old version operator * add dot test * modify doc * remove unreviewed code * Update paddlepaddle.py * Update test_forward.py * Update paddlepaddle.py * Update paddlepaddle.py * Update test_forward.py * Update test_forward.py * add more cases for tests * add more cases for tests * remove annotation * reduce test case sizes * fix bug for paddlepaddle frontend
* Documentation Refactor - Stage 1 RFC: https://github.com/apache/tvm-rfcs/blob/main/rfcs/0027-formalize-documentation-organization.md Tracking Issue: apache#8987 Stage 1 of the documentation refactor reorganizes the docs structure, moving files (without content changes) and adding new scaffolding to generate the proper document tree. It does not address naming, style, content, links, or other existing content in documents that were moved. State 2 will address fixing these issues with existing content. Major changes include but are not limited to: * Dividing the existing tutorials into two sections: * Tutorials * How Tos * Moving all of the existing tutorials out of the `/tutorial` directory and into the more general `/gallery` directory. * Breaking up how-tos into individual sections for more flexibility and more consistent rendering. * Moving content into new classifications: * `/docs/arch` for architecture guides * `/docs/reference` for API guides and other reference material * `/docs/topic` for topic specific guides such as microTVM and VTA * Restructuring `/docs/dev` * Adding a table of contents to the doc index * Adding instructions on how to install using third-party tlcpack * Documentation Refactor - Stage 2 RFC: https://github.com/apache/tvm-rfcs/blob/main/rfcs/0027-formalize-documentation-organization.md Tracking Issue: apache#8987 Stage 2 of the documentation refactor fixes naming and links in the documentation to be consistent with the overall structure. Major changes include: * an update to how to contribute to docs. * several updated index pages with title changes to match the organization style and bring consistency to the sections * expanded descriptions of some page collections * fixed links * Documentation Refactor - Stage 3 RFC: https://github.com/apache/tvm-rfcs/blob/main/rfcs/0027-formalize-documentation-organization.md Tracking Issue: apache#8987 Stage 3 of the documentation refactor adjusts CI for the new structure. The CI build script takes into account the new gallery format. It also prevents deleting existing documents, and takes advantage of the `_staging` and `_build` directories to clean out previous builds.
When I didn't have `:latest` available I saw that my image wasn't being re-used between runs.
Fix install from source link(pointed to matplotlib). Updated some wording. Move description of tlcpack to just a link so it can be kept from tlcpack side.
* Initial Implementation of TIRToRuntime Target hook This is the initial implementation which wires in a test case for TIRToRuntime, in order to get this working I re-used `CodegenCHost` as it implements all of the `Op`s required from the lowered `PrimFunc`. Currently, the `IRModule` is non-unified but in future work it should definitely do so, I wanted to implement the basics here to get the infra in place. * Fix heterogeneous compute with multiple kDLCPU targets * Remove rogue te_compiler.h include
* adds importer code * enables `test_qlinearmatmul_2D` unit test
* Arm(R) Ethos(TM)-U NPU Depthwise2d operator support This commit adds support for Depthwise2d primitive operator throughout the TVM stack including Relay legalization pass, operator definition, TE, TIR passes and translation into the command stream. Change-Id: If82b85f5d3b23cd214fe38babd724451bf95ef5b * Change depthwise2d to depthwise_conv2d And respond to other review comments. Change-Id: I58a9f28723750970d386b4d0ba62fa399c5c6181 * Make a line shorter and add a comment Change-Id: Idf4c078bf65e7ed31fe82a92bf334295a82b6ead * Change the order of imports Change-Id: Ic6c77af30a5b9cb68dcc0c173b95490965359481 * Whitespace change Change-Id: I7318bd8cfa5985b33fc7d020cc19057cc9498197
* support gather op dynamic input * fix shape func and add test * remove constness check * fix shape func output rank * restore check Co-authored-by: masa <masa@pop-os.localdomain>
…NCHW etc properly) (apache#9245) * prohibit propagating through packed to unpacked layout * add test
There are some failing test cases on CI that relate to this change |
@comaniac, @vinx13, @masahi: I have pushed changes based on feedback. Latest changes are now utilizing a new out_layout field of pooling op (similar to what conv op has) so that, when out_layout is specified by user for pooling, pooling op will use and stick to the specified out_layout format. |
Ah please rebase against to the latest commit. This PR shouldn't have 9k changes... |
Please use rebase instead of merge. We need to see the correct changes of this PR, and it cannot include the commits from other PRs. |
Do you like me to create a new TVM github pull request with all changes in one upstream again so it is cleaner?
I can do that but not sure how to move all discussions over.
Please advise !
Once again, if there happen to have instructions (or sample links), which are for “github” pull request with rebase, please point us to those so we will not make same mistake again.
Thanks,
* Joe
From: Joe Chou
Sent: Tuesday, October 19, 2021 7:46 AM
To: apache/tvm ***@***.***>; apache/tvm ***@***.***>
Cc: Author ***@***.***>
Subject: RE: [EXT] Re: [apache/tvm] [Op] Do not override specified layout in pooling (#9235)
I did use rebase on my side.
But for this time around because I did not know that, for upstreaming further changes, I have to advance my pull request’s base (main) to latest TVM github main again; therefore, the order of my git commands were not correct – leading to the merging situation.
Do you happen to have instructions (or sample links), which is for “github” pull request and allows to do rebase in order upstream new changes?
Can you share those links with us so that we can follow to avoid future git related troubles?
We have our own git server & GUI but different requirements are implemented over there; but, we want to follow TVM github git guidelines.
Thanks,
* Joe
From: Cody Yu ***@***.******@***.***>>
Sent: Monday, October 18, 2021 7:50 PM
To: apache/tvm ***@***.******@***.***>>
Cc: Joe Chou ***@***.******@***.***>>; Author ***@***.******@***.***>>
Subject: [EXT] Re: [apache/tvm] [Op] Do not override specified layout in pooling (#9235)
External Email
…________________________________
Please use rebase instead of merge. We need to see the correct changes of this PR, and it cannot include the commits from other PRs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_tvm_pull_9235-23issuecomment-2D946321611&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=cvYw2dlkGTNlnqbrVbxm_jJT-EVbz2hXQgh1XeV3fsI&s=-yW2Oqts6oW8PhsVqKlygMxGKQHZWfFSYb0ZvPbkONQ&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AM636PGAEJEDSDXBTXACSH3UHTMGBANCNFSM5FUWAG4A&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=cvYw2dlkGTNlnqbrVbxm_jJT-EVbz2hXQgh1XeV3fsI&s=-jJkbT1vqONySNCUJQ5xWRymSYgJVvp8NNg8xUhTWow&e=>.
Triage notifications on the go with GitHub Mobile for iOS<https://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=cvYw2dlkGTNlnqbrVbxm_jJT-EVbz2hXQgh1XeV3fsI&s=I1dAssFokDD8qTL1IyLWBXLcPq0dglCw26sNYtyTeds&e=> or Android<https://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=cvYw2dlkGTNlnqbrVbxm_jJT-EVbz2hXQgh1XeV3fsI&s=CE89y59UuMjK8HE8Ytf9bMy8FLbGK-KvUm3hZ2QeaH8&e=>.
|
You can force push to current branch, so that you don't need to create new PR. Usually you will use |
Thank you for your help !
Just to be sure that I understand your suggestion.
I should do git pull --rebase on my local machine?
On my local machine, I did the following instructions (see BLOD or search for Local-machine) but nothing happens…
I am using a working branch locally.
Local-machine$ git log
commit 781ebe1 (HEAD -> working, origin/working)
Author: Joe (Chien-Chun) Chou ***@***.***>
Date: Mon Oct 18 19:44:54 2021 -0700
updated format of two py files
commit 5e77c54
Merge: 9319d90 961db91
Author: Joe (Chien-Chun) Chou ***@***.***>
Date: Mon Oct 18 18:45:37 2021 -0700
Merge branch 'working' of https://github.com/ccjoechou/tvm into working
commit 9319d90
Author: Joe (Chien-Chun) Chou ***@***.***>
Date: Fri Oct 8 18:02:42 2021 -0700
[bug] pooling convert layout bug in pooling.cc and in test_pass_convert_op_layout.py
commit 75cf964 (upstream/main, origin/main, origin/HEAD, main)
Author: Tianqi Chen ***@***.***>
Date: Mon Oct 18 17:31:33 2021 -0400
…
Local-machine$ git branch
main
* working
Local-machine$ git remote -v
origin https://github.com/ccjoechou/tvm.git (fetch)
origin https://github.com/ccjoechou/tvm.git (push)
upstream https://github.com/apache/tvm (fetch)
upstream https://github.com/apache/tvm (push)
And, I can do the following, right now:
Local-machine$ git pull –rebase
Already up to date.
Current branch working is up to date.
Local-machine$ git push origin working
Everything up-to-date
Thanks,
* Joe
From: Wuwei Lin ***@***.***>
Sent: Tuesday, October 19, 2021 11:22 AM
To: apache/tvm ***@***.***>
Cc: Joe Chou ***@***.***>; Author ***@***.***>
Subject: [EXT] Re: [apache/tvm] [Op] Do not override specified layout in pooling (#9235)
External Email
…________________________________
You can force push to current branch, so that you don't need to create new PR. Usually you will use git pull --rebase
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_tvm_pull_9235-23issuecomment-2D946984950&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=d5mum7BVsrrnTBn14rIvmceQDCuuGeSNVfo_rGh1JX0&s=PwlB_OuOPE3WQQHHeTHPmnzTtHYcJHuhA0_CNnNWgN4&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AM636PB4OIDJWBNZ7Y5OUATUHWZNNANCNFSM5FUWAG4A&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=d5mum7BVsrrnTBn14rIvmceQDCuuGeSNVfo_rGh1JX0&s=FwKmhMQO-r9Nv44lywETobjwYV2eF-DnJJeoXBX0zDk&e=>.
Triage notifications on the go with GitHub Mobile for iOS<https://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=d5mum7BVsrrnTBn14rIvmceQDCuuGeSNVfo_rGh1JX0&s=LAZDprZQr8tYMANurXGNKh2lojIns09KVIW6-zJnbaw&e=> or Android<https://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=d5mum7BVsrrnTBn14rIvmceQDCuuGeSNVfo_rGh1JX0&s=MtqEiI0CjktSccgtJe2ohwUUI_uEcX-yAtY8meUxmMg&e=>.
|
since you have already used merge, you need to run |
* flags to turn off and on * turn fast math on always * llvm more opts * move to default codegen opt * TODO * add fast math options to llvm target * move to using new target attributes * llvm fast math target opt code * add -O flags * fix todo lint * support llvm 4.0, 5.0 * use same opt level as target machine * revert TargetOptions * fix thing * prevent regression in llvm * togglable opt-levels Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
…e#9292) Added a hooks to the VM execution loop to record runtime of certain instructions with significant runtimes. Now the profiling report will include data allocation and transfer times.
Updates links to use references instead of direct links, fixing broken links and making all internal docs links more durable to refactoring
creating a new PR is ok but you still need to make sure you branch is clean (via cherry-pick or rebase) |
Looks like those commands are not helping…
I will create a new PR (will make sure all files and changes are good over there).
If I need to amend again, will use git pull --rebase so no merging shows up…
Thanks for your help again.
* Joe
From: Joe Chou
Sent: Tuesday, October 19, 2021 1:07 PM
To: apache/tvm ***@***.***>; apache/tvm ***@***.***>
Cc: Author ***@***.***>
Subject: RE: [EXT] Re: [apache/tvm] [Op] Do not override specified layout in pooling (#9235)
I did all those.
I think you are implying that I need to git push origin main as well as git push origin working.
Thanks and will do both to see what happens on github PR…
* Joe
From: Wuwei Lin ***@***.******@***.***>>
Sent: Tuesday, October 19, 2021 1:00 PM
To: apache/tvm ***@***.******@***.***>>
Cc: Joe Chou ***@***.******@***.***>>; Author ***@***.******@***.***>>
Subject: [EXT] Re: [apache/tvm] [Op] Do not override specified layout in pooling (#9235)
External Email
…________________________________
git checkout main
git pull upstream main # this will update main branch locally
git checkout working
git rebase main
creating a new PR is ok but you still need to make sure you branch is clean (via cherry-pick or rebase)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_tvm_pull_9235-23issuecomment-2D947060998&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=1jdpxuqtRe1lSVYSzEEow9JA-FHQhJFAXln90WB1qlw&s=wAqiWqm4CUT9oCps5pvu8lNTgZiIuOGpQQ7apUj9qIY&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AM636PF5QPGW4W4HIZQ2RKLUHXE5ZANCNFSM5FUWAG4A&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=1jdpxuqtRe1lSVYSzEEow9JA-FHQhJFAXln90WB1qlw&s=ZcI5-MkNNzPjRZgl0XLeoQ7ZveE7a8GuWlupzLYivyo&e=>.
Triage notifications on the go with GitHub Mobile for iOS<https://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=1jdpxuqtRe1lSVYSzEEow9JA-FHQhJFAXln90WB1qlw&s=_21lGe5HBhQoQg5KN9_0fzgAe3Zirkbbmtja0hDnWnY&e=> or Android<https://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMCaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=84zI-iH2xz28Q_xujSGbjYaq38CgcRgl_vGzCtF6TwQ&m=1jdpxuqtRe1lSVYSzEEow9JA-FHQhJFAXln90WB1qlw&s=ozzGhIB6c1shxVupA5YM6DfawTpIdMyS7Yh_SqaXCCg&e=>.
|
…rt_op_layout.py
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.