Python tf.summary.image provoks PNG编码失败

Python tf.summary.image provoks PNG编码失败,python,linux,tensorflow,tensorboard,libpng,Python,Linux,Tensorflow,Tensorboard,Libpng,我正在处理MNIST数据集,在使用tensorboard时遇到问题。我想使用以下功能录制图像: tf.summary.image('input', input_layer, 1) 但我得到以下警告和错误: 2018-11-04 19:32:44.798869:W tensorflow/core/lib/png/png_io.cc:87]png警告:应用程序使用libpng-1.2.50构建,但使用1.6.34运行 2018-11-04 19:32:44.838003:W tensorflow/

我正在处理MNIST数据集,在使用tensorboard时遇到问题。我想使用以下功能录制图像:

tf.summary.image('input', input_layer, 1)
但我得到以下警告和错误:

2018-11-04 19:32:44.798869:W tensorflow/core/lib/png/png_io.cc:87]png警告:应用程序使用libpng-1.2.50构建,但使用1.6.34运行 2018-11-04 19:32:44.838003:W tensorflow/core/framework/op_kernel.cc:1273]op_REQUIRES在摘要_image_op.cc:131:Internal:PNG编码失败 2018-11-04 19:32:44.798869:W tensorflow/core/lib/png/png_io.cc:87]png警告:应用程序使用libpng-1.2.50构建,但使用1.6.34运行 2018-11-04 19:32:44.838003:W tensorflow/core/framework/op_kernel.cc:1273]op_REQUIRES在摘要_image_op.cc:131:Internal:PNG编码失败

我读到了警告,从我读到的内容来看,这可能不是问题。 我无法发现或理解的是,警告所指的“应用程序”是什么,tensorflow?张力板? 我从互联网上得到的建议之一是在我的系统中使用与应用程序相同的版本。我想更新应用程序中的一个

另一点,为了确保tf.summary.image的输入正常,请使用以下命令:

input_layer = tf.reshape(features, [-1, 28, 28, 1])
打印(输入层)

提供以下输出:

张量(“重塑:0”,形状=(?,28,28,1),数据类型=浮点32)

这似乎与图像功能的输入要求相对应

请告诉我: -这个问题是众所周知的 -或者下次如何更独立地调查这个问题(我对版本调查有点迷茫,是否安装了什么,是否应该在python或Linux中检查版本)

先谢谢你