Skip to content

[TVMC] --disable-pass option added to compile mode#7816

Merged
comaniac merged 4 commits into
apache:mainfrom
d-smirnov:tvmc-disabled-pass
Apr 13, 2021
Merged

[TVMC] --disable-pass option added to compile mode#7816
comaniac merged 4 commits into
apache:mainfrom
d-smirnov:tvmc-disabled-pass

Conversation

@d-smirnov

Copy link
Copy Markdown
Contributor

Added --disable-pass option to TVMC compile mode to disallow certain supplied passes in PassContext for the compiler.

@d-smirnov d-smirnov force-pushed the tvmc-disabled-pass branch 2 times, most recently from 2f04b63 to 5346303 Compare April 9, 2021 16:32

@comaniac comaniac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please also add test cases.

Comment thread python/tvm/driver/tvmc/common.py Outdated
Comment thread python/tvm/driver/tvmc/common.py Outdated
Comment thread python/tvm/driver/tvmc/common.py Outdated
Comment thread python/tvm/driver/tvmc/compiler.py Outdated
Comment thread python/tvm/driver/tvmc/compiler.py Outdated
Comment thread python/tvm/driver/tvmc/compiler.py Outdated
@comaniac comaniac self-assigned this Apr 9, 2021
@comaniac comaniac added status: need test case need test cases to cover the change status: need update need update based on feedbacks labels Apr 9, 2021
@comaniac

comaniac commented Apr 9, 2021

Copy link
Copy Markdown
Contributor

Also cc @leandron

Added --disable-pass option to TVMC compile mode to disallow
certain supplied passes in PassContext for the compiler.

Change-Id: Iae1849d7b051ac9288509dc458a58788c865537a
@d-smirnov d-smirnov force-pushed the tvmc-disabled-pass branch from 5346303 to d63f6b4 Compare April 9, 2021 17:27

@leandron leandron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add a some test cases.

Comment thread python/tvm/driver/tvmc/compiler.py
Comment thread python/tvm/driver/tvmc/common.py Outdated
Change-Id: If688f65441d3aa9967ab823adf899cfc704bd097

@comaniac comaniac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Please evaluate @leandron's comment of listing all available passes. We could skip that if it's too many as suggested.

@comaniac comaniac added status: accepted and removed status: need test case need test cases to cover the change status: need update need update based on feedbacks labels Apr 12, 2021
Change-Id: I7a4706c03c0d64cade4977d431bcb25b3708f213
Change-Id: I33d6f6f86d182de2e21e895ec2dfe9f11f5916dd

@leandron leandron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Considering it is an advanced feature, and it is quite a big list of passes, I agree with your choice of showing it only when the user points to some pass that doesn't exist. LGTM.

@comaniac comaniac merged commit ef68e20 into apache:main Apr 13, 2021
@comaniac

Copy link
Copy Markdown
Contributor

Thanks @d-smirnov @leandron

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
* [TVMC] --disable-pass option added to compile mode

Added --disable-pass option to TVMC compile mode to disallow
certain supplied passes in PassContext for the compiler.

Change-Id: Iae1849d7b051ac9288509dc458a58788c865537a

* Added test, addressed requests

Change-Id: If688f65441d3aa9967ab823adf899cfc704bd097

* added printing of available passes

Change-Id: I7a4706c03c0d64cade4977d431bcb25b3708f213

* C0415(import-outside-toplevel)

Change-Id: I33d6f6f86d182de2e21e895ec2dfe9f11f5916dd
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
* [TVMC] --disable-pass option added to compile mode

Added --disable-pass option to TVMC compile mode to disallow
certain supplied passes in PassContext for the compiler.

Change-Id: Iae1849d7b051ac9288509dc458a58788c865537a

* Added test, addressed requests

Change-Id: If688f65441d3aa9967ab823adf899cfc704bd097

* added printing of available passes

Change-Id: I7a4706c03c0d64cade4977d431bcb25b3708f213

* C0415(import-outside-toplevel)

Change-Id: I33d6f6f86d182de2e21e895ec2dfe9f11f5916dd
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
* [TVMC] --disable-pass option added to compile mode

Added --disable-pass option to TVMC compile mode to disallow
certain supplied passes in PassContext for the compiler.

Change-Id: Iae1849d7b051ac9288509dc458a58788c865537a

* Added test, addressed requests

Change-Id: If688f65441d3aa9967ab823adf899cfc704bd097

* added printing of available passes

Change-Id: I7a4706c03c0d64cade4977d431bcb25b3708f213

* C0415(import-outside-toplevel)

Change-Id: I33d6f6f86d182de2e21e895ec2dfe9f11f5916dd
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
* [TVMC] --disable-pass option added to compile mode

Added --disable-pass option to TVMC compile mode to disallow
certain supplied passes in PassContext for the compiler.

Change-Id: Iae1849d7b051ac9288509dc458a58788c865537a

* Added test, addressed requests

Change-Id: If688f65441d3aa9967ab823adf899cfc704bd097

* added printing of available passes

Change-Id: I7a4706c03c0d64cade4977d431bcb25b3708f213

* C0415(import-outside-toplevel)

Change-Id: I33d6f6f86d182de2e21e895ec2dfe9f11f5916dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants