-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[TVMC] Fix logging in TVMC #14175
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
[TVMC] Fix logging in TVMC #14175
Conversation
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment. Generated by tvm-bot |
leandron
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.
LGTM, thanks @ekalda!
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 fixing this @ekalda, I did wonder how this worked
|
Sorry this fell off my radar for a bit - updated the patch now with a test to check that we set the |
Three logger related changes in this patch: * Currently we don't set the output stream on the Python logger, so it defaults to sys.stderr, which means we only get some logger output when the command fails. So set the output stream to sys.stdout * Currently we can add -v flag to anywhere in the command line for tvmc compile, but only between tvmc and run/tune for run and tune. Unify the behaviour such that we can add the flag anywhere on the command line. * Set the effective upper bound of -vs to 3 as 4 could result in NOTSET which would not output anything.
Change-Id: I49554e5bbac4332f1db8ad0c7fbfce4001dbf36a
Three logger related changes in this patch:
tvmc compile, but only betweentvmcandrun/tuneforrunandtune. Unify the behaviour such that we can add the flag anywhere on the command line.-vs to 3 as 4 could result in NOTSET which would not output anything.