-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[TVMC] Enhance the --help message of codegen target #13798
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
Conversation
|
Present --help string has no meaningful description, it simply prints the target, option name and python type This can be enhanced by accessing the config node of codegen target, which has meaningful descritption. Enhanced --help string after the fix target vitis-ai: |
lhutton1
left a comment
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.
Thanks @MNGanesan this looks like a sensible change to me. Would it be possible to add a test to check this case perhaps in tests/python/driver/tvmc/test_target_options.py?
Also cc @Mousius
Mousius
left a comment
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.
This looks like an awesome change, the original author made an odd choice here 🤔
Please add a test 😸
|
@tvm-bot rerun |
via the pull request apache#13798 Here, adding test cases to verify the fix Signed-off-by: MNGanesan <mnganesan@yahoo.co.uk>
|
Added the test via commit commit f6bfd9a (HEAD -> main, origin/main, origin/HEAD) |
|
Pushed the test via commit
commit f6bfd9a (HEAD -> main, origin/main, origin/HEAD)Author: MNGanesan ***@***.***>Date: Tue Jan 24 13:58:00 2023 +0000
Thanks,Ganesan
On Tuesday, 17 January 2023 at 19:30:52 GMT+5:30, Luke Hutton ***@***.***> wrote:
@lhutton1 commented on this pull request.
Thanks @MNGanesan this looks like a sensible change to me. Would it be possible to add a test to check this case perhaps in tests/python/driver/tvmc/test_target_options.py?
Also cc @Mousius
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Pushed the test via commit
commit f6bfd9a (HEAD -> main, origin/main, origin/HEAD)Author: MNGanesan ***@***.***>Date: Tue Jan 24 13:58:00 2023 +0000
Thanks,Ganesan
On Wednesday, 18 January 2023 at 14:56:00 GMT+5:30, Leandro Nunes ***@***.***> wrote:
@tvm-bot rerun
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
lhutton1
left a comment
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.
Thanks for adding the test @MNGanesan, it looks good to me :)
I took a quick look at the CI failures and they seem unrelated to your change. I wonder if your branch may need to be rebased onto the latest main?
|
Dropping this PR, moved by fix and test to new PR #13842 under my branch enhance_help_msg |
|
Thanks @lhutton, I've moved the fix to new PR under a new branch Enhance the --help message of composite target by MNGanesan · Pull Request #13842 · apache/tvm
|
|
|
| | |
|
|
|
| |
Enhance the --help message of composite target by MNGanesan · Pull Reque...
Presently --help for vitis displays the target and option string, it has no description. Eg: target vitis-ai d...
|
|
|
Thanks,Ganesan
On Wednesday, 25 January 2023 at 00:25:23 GMT+5:30, Luke Hutton ***@***.***> wrote:
@lhutton1 commented on this pull request.
Thanks for adding the test @MNGanesan, it looks good to me :)
I took a quick look at the CI failures and they seem unrelated to your change. I wonder if your branch may need to be rebased onto the latest main?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Thanks,Ganesan
On Wednesday, 25 January 2023 at 14:27:25 GMT+5:30, M N Ganesan ***@***.***> wrote:
Thanks @lhutton, I've moved the fix to new PR under a new branch Enhance the --help message of composite target by MNGanesan · Pull Request #13842 · apache/tvm
|
|
|
| | |
|
|
|
| |
Enhance the --help message of composite target by MNGanesan · Pull Reque...
Presently --help for vitis displays the target and option string, it has no description. Eg: target vitis-ai d...
|
|
|
Thanks,Ganesan
On Wednesday, 25 January 2023 at 00:25:23 GMT+5:30, Luke Hutton ***@***.***> wrote:
@lhutton1 commented on this pull request.
Thanks for adding the test @MNGanesan, it looks good to me :)
I took a quick look at the CI failures and they seem unrelated to your change. I wonder if your branch may need to be rebased onto the latest main?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Presently --help for vitis displays the target and option string,
it has no description. Eg: target vitis-ai dpu<class 'str'>
This can be made more meaningful by fetching the description from the config node of the target. Eg: Vitis AI DPU identifier
Signed-off-by: MNGanesan mnganesan@yahoo.co.uk