Skip to content

Conversation

@ekalda
Copy link
Contributor

@ekalda ekalda commented Mar 2, 2023

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.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Mar 2, 2023

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

Copy link
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @ekalda!

Copy link
Contributor

@lhutton1 lhutton1 left a 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

@ekalda
Copy link
Contributor Author

ekalda commented Mar 14, 2023

Sorry this fell off my radar for a bit - updated the patch now with a test to check that we set the logging.basicConfig.

ekalda added 4 commits March 15, 2023 11:09
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
@lhutton1 lhutton1 merged commit f6b7579 into apache:main Mar 15, 2023
@lhutton1
Copy link
Contributor

Thanks @ekalda, @leandron!

@ekalda ekalda deleted the fix-tvmc-logger branch March 15, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants