Skip to content
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

[one-cmds/one-import] Fix "--verbose" option #12914

Open
seanshpark opened this issue Apr 24, 2024 · 3 comments
Open

[one-cmds/one-import] Fix "--verbose" option #12914

seanshpark opened this issue Apr 24, 2024 · 3 comments

Comments

@seanshpark
Copy link
Contributor

seanshpark commented Apr 24, 2024

one-import and one-import-* doesn't provide --verbose option.

  • one-import-onnx does have --verbose but changing TF_CPP_MIN_LOG_LEVEL doesn't seem to work

these have sys.tracebacklimit = 0 to silence unnecessary messages,
but for debugging this gives no help.

for each import tools, let's enable possible logs when verbose option is on.

@seanshpark
Copy link
Contributor Author

sys.tracebacklimit default is 1000

@seanshpark
Copy link
Contributor Author

seanshpark commented Apr 24, 2024

onecc --verbose -C model.cfg

doesn't seem to propagate to one-import-onnx

@seanshpark seanshpark changed the title [one-cmds/one-import] Support "--verbose" option [one-cmds/one-import] Fix "--verbose" option Apr 25, 2024
@seanshpark
Copy link
Contributor Author

seanshpark commented Apr 25, 2024

TF_CPP_MIN_LOG_LEVEL doesn't seem to work

It's now TF_CPP_MAX_VLOG_LEVEL

  • have to set TF_CPP_MAX_VLOG_LEVEL=3 to show logs

https://github.com/tensorflow/tensorflow/blob/2e076fec019b7c816329282fb1a7408e6f0d1185/tensorflow/python/util/vlog_test.py#L20

import os
os.environ["TF_CPP_MAX_VLOG_LEVEL"] = "5"
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "0"

this test sets to 5 ...

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

No branches or pull requests

1 participant