question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tensorflow warnings

See original GitHub issue

Tons of warnings arise of two types:

WARNING:tensorflow:Entity <bound method Dense.call of <tensorflow.python.layers.core.Dense object at 0x00000217AD0119E8>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: converting <bound method Dense.call of <tensorflow.python.layers.core.Dense object at 0x00000217AD0119E8>>: AssertionError: Bad argument number for Name: 3, expecting 4

and

C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint16 = np.dtype([(“qint16”, np.int16, 1)])

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
grayskripkocommented, May 18, 2020

thanks @yoptar, I found the solution a month ago. The thing is that most of your users won’t find this and important messages will be hidden in tons of non-relevant garbage info messages. Why don’t create an argument for most important CLI commands (build_model, train_model, …) log_level and adjust deeppavlov, keras, tf, pytorch, (…) and others

1reaction
yoptarcommented, May 17, 2020

Hi,

You can run

import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)

in your code to suppress warnings and INFO messages from TensorFlow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable Tensorflow debugging information - python
So to knock out these warnings in a single blow, do import warnings then warnings.filterwarnings('ignore') , then run your tensorflow imports and and...
Read more >
tf.compat.v1.logging.warning | TensorFlow v2.11.0
logging. warning. Stay organized with collections Save and categorize content based on your preferences.
Read more >
disable warnings - Google Groups
Hello, I am newbie to tensorflow. When running the demo code from tensorflow.org, I got a lot of warnings: $ python tensor3.py. WARNING:...
Read more >
Tensorflow warning messages in recent notebooks. - Kaggle
Keras, I'm getting some warning messages. I believe it started a couple of weeks ago. When I import Tensorflow, this shows up as...
Read more >
How to remove TensorFlow CUDA messages ... - GitHub
I installed TensorFlow 2.8.0 in my Windows 10 PC with CPU only. ... To turn off the Tensorflow warnings use below code snippet....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found