TF使用旧版本经常会出现类似于下面烦人的warning
WARNING:tensorflow:From xxx The name tf.summary.merge is deprecated. Please use tf.compat.v1.summary.merge instead.
解决办法:
在TF文件开始前添加以下代码:
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
参考:
TF 1.x: remove the “deprecated” warning messages #27023