Deepreg: Suppress TensorFlow warnings

Created on 9 Jan 2021  路  3Comments  路  Source: DeepRegNet/DeepReg

Subject of the feature

TensorFlow is not printing many warnings in the bash. We need to check if any one of them should be fixed, like #428.
Then we should remove warning by default.

UPDATE: the better option is to use verbosity

bug

Most helpful comment

As mentioned in #656; would be good to adjust verbosity of logging here as well (for model.summary and model.fit as examples)

All 3 comments

defining TF_CPP_MIN_LOG_LEVEL=3 before launching the code seems to work, but it is unclear yet how to do it inside python.

for deprecated warnings, need to do
https://www.codespeedy.com/suppression-of-deprecation-warnings-in-tensorflow-python/

As mentioned in #656; would be good to adjust verbosity of logging here as well (for model.summary and model.fit as examples)

Closing this issue in favor of https://github.com/DeepRegNet/DeepReg/issues/745

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NMontanaBrown picture NMontanaBrown  路  5Comments

mathpluscode picture mathpluscode  路  6Comments

NMontanaBrown picture NMontanaBrown  路  4Comments

NMontanaBrown picture NMontanaBrown  路  7Comments

NMontanaBrown picture NMontanaBrown  路  6Comments