Tensorflow warnings
See original GitHub issueTons 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:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
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
Hi,
You can run
in your code to suppress warnings and INFO messages from TensorFlow.